SD Mastery
.
course
prep
arena
ask
shorts
stories
you
?
Search lessons, topics…
⌘K
?
L1
· Intern
0 / 100 xp → junior
~
course
prep
arena
ask
shorts
stories
you
Loading page…
~/himanshu
tty1
~/himanshu
$
cd ~/next-page
[ok]
resolve route
[
..
]
stream page
← all concepts
TTL
.
also: time-to-live · time to live · TTLs
Time-to-live: how long a cache entry (or record) is kept before it expires automatically.
the two-minute refresher
Simplest invalidation: the entry expires after N seconds, whatever happens.
Within the TTL, readers can see stale data even if the database changed.
Short TTL = fresher data, more misses; long TTL = fewer misses, staler data.
Use it as a safety net under event-driven invalidation, and add jitter so keys don't expire together.
Where the course teaches it
W04 · Day 2
Invalidation Strategies
learn it →
W04 · Day 1
Caching Patterns
revisit →
Related concepts
Cache invalidation
Probabilistic early expiration
Stale-while-revalidate
Notebook
Ask