Cache

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.

Lessons that use it

More cache terms

All terms →

Arki, the beaver mascot

Your next interview starts with 5 minutes today.

Free on iOS and Android. Start from zero, no account needed.