Interview practice question
Memory grows without bound
System Design · Caching · Experienced
Your cache memory keeps growing every day until evictions start hurting hit rates. Investigation shows millions of keys without TTL. How do you fix and prevent this?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Find key patterns without TTL.
- Add TTLs; backfill expiry on existing keys.
- Enforce TTL in client wrapper.
- Code review and lint rules.
- Monitor key count and memory.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.