Skip to content
Theory · Redis in Practice · lesson 1 of 13

Caching patterns

A miss on the board (1), the price 220.00 is read from the ledger (2) and pinned on the board as a note with an EX 300 hourglass (3)

The magnetic board at the counter from the previous chapter is a copy of the ledger in the back office. It knows no prices by itself: someone has to walk to the back office and copy a price onto a note. And when a price in the ledger changes, the note on the board lies until someone takes it down.

In this lesson

  • Cache-aside
  • What to do on a write
  • The cache's time to live
  • Cache stampede
  • Common mistake
  • Key points