This simulator demonstrates how a fixed-capacity LRU cache processes a sequence of accesses, showing hits, misses, and which item gets evicted each time the cache is full.
Set the cache capacity, then feed in a sequence of keys one at a time to watch the recency order update and see evictions happen live.
Controls let you set the cache capacity and step through a sequence of key accesses to trigger hits, promotions, and evictions.
Real CPU caches rarely implement exact LRU because tracking true recency for many cache lines is expensive in hardware, so they use cheaper approximations that behave similarly.
This simulator demonstrates how a fixed-capacity LRU cache processes a sequence of accesses, showing hits, misses, and which item gets evicted each time the cache is full.
This simulator demonstrates how a fixed-capacity LRU cache processes a sequence of accesses, showing hits, misses, and which item gets evicted each time the cache is full.
Set the cache capacity, then feed in a sequence of keys one at a time to watch the recency order update and see evictions happen live.
Real CPU caches rarely implement exact LRU because tracking true recency for many cache lines is expensive in hardware, so they use cheaper approximations that behave similarly.