Interview practice question
Choosing an eviction policy
System Design · Caching · Beginner
Your cache stores product data where a few bestsellers are always popular and many items are viewed once and never again. Which eviction policy fits?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- LRU can be polluted by one-time items.
- LFU keeps consistently popular items.
- Or LRU with admission filter (TinyLFU).
- Measure hit rate for each.
- Redis supports allkeys-lfu.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.