Cache Eviction Visualizer
Run the same key accesses through LRU, LFU, and TTL caches of fixed size and compare hits, misses, and victims.
Cache Eviction Policies
Feed the same access pattern into LRU, LFU, and TTL caches and compare hits, misses, and evictions.
Each cache has the same capacity. TTL entries start with TTL=3 ticks. Pattern demos classic differences between recency, frequency, and time-based eviction.
Policies
- LRU: evict least recently used
- LFU: evict least frequently used
- TTL: expire by time regardless of popularity
