caching
TTL Cache
Time-To-Live — entries automatically expire after a configurable duration
Active Entries0
TTL5s
Total Expired0
TTL
No entries — add items and watch them expire
// event log
No events yet.
// how it works
- Each entry stores a creation timestamp + TTL
- A background sweep checks for expired entries
- Expired entries are automatically purged
- No manual invalidation needed
- Re-PUTting a key resets its TTL timer
// trade-offs
- Simple and predictable staleness bounds
- Great for session data, DNS records
- Fixed TTL may not match actual data freshness
- Thundering herd on mass expiration