All simulators

LRU cache walkthrough

Read and write keys and see what gets evicted, and why.

Most recently usedNext to be evicted
  1. empty
  2. empty
  3. empty

A real LRU cache keeps this order in a doubly linked list and finds entries through a hash map, so reads, writes and evictions are all O(1).

Hits
0
Misses
0
Hit rate
n/a
In cache
0 of 3

What just happened

Nothing yet. Use the controls above.