ANATOMYMEMORY / 001
Least recently used.
A small cache has a simple rule: keep what you use.
When it fills up, let the oldest access go.
MOST RECENT
- A
- B
- C
- D
REQUEST
STARTS WARM
A, B, C and D are already cached. Try C for a hit, then E for a miss.
- HITS
- 0
- MISSES
- 0
- EVICTIONS
- 0
One access is enough. A new access makes a key most recent, even if another key was used many times before.
In software. A hash table finds the entry; a doubly linked list moves it to the recent end. The moving cartridges illustrate that change in order.