TTL expiration and cache reapers
The core idea
A time to live, or TTL, limits how long a cached entry may answer requests.
Expiration enforces that deadline.
In this lesson
- Store a deadline
- Expired does not mean removed yet
- Find expired entries cheaply
- A fresh TTL can cover an old value
- Spread batches of deadlines
Continue reading
Pro unlocks video lessons, visual walkthroughs, full notes, diagrams, case studies, and implementations across the System Design archive.