Cianplan

Level 2: Data · L2.6 Caching strategies

Invalidation and TTLs

Design invalidation for a write path and choose TTLs.

12 min · Pro

What you take away

  • A TTL bounds how long a value may be wrong; it never notices that the value became wrong.

And 3 more inside the class, in Pro.

How the class is laid out

  1. The problem
  2. The simple version
  3. The race, drawn
  4. Choosing a TTL, and caching the misses
  5. Check your understanding