TAG · 1 ARTICLE

#lru-vs-lfu

  1. SYSTEM DESIGNCache eviction and invalidation explained: LRU vs LFU, TTL and the thundering herd problemA cache is small and data keeps changing. Eviction decides what to throw out when memory is full. Invalidation removes data that's no longer true. Learn LRU, LFU, FIFO and TTL, the four ways to invalidate a cache, and how to stop a thundering herd from flattening your database.24 Nov 2026 · 8 min