LRU
Least recently used: the eviction policy that removes the item used longest ago.
Example
Between an item used 3 hours ago and another 2 seconds ago, LRU removes the 3-hour one.
Test yourself: LRU
Evicting and spreading the cache
LRU removes from the cache the item used the ___ time ago.
Between an item used 3 hours ago and another 2 seconds ago, LRU removes the 3-hour one.
Generating unique keys
The cache is full and a new link arrives. With LRU, what's discarded?
A link with no visits in 30 days leaves before one visited 1 minute ago.
0/2
â–¶ Play