← All Tools

LRU Cache Simulator

Step through a Least-Recently-Used (LRU) cache and watch entries move, age, and get evicted. Feed it a list of operations, set the capacity, then play, step, or reset.

Operations

One op per line. GET key or PUT key value. Lines starting with # are ignored.
0
Hits
0
Misses
0
Evicts
Hit ratio

Cache state (top = most recent)

Log