Cache

Eviction policy

The rule that decides which item to remove from the cache when it's full, to make room for a new one.

Example

With the cache full, LRU removes the profile nobody opened in 3 hours to store a new one.

Test yourself: Eviction policy

Evicting and spreading the cache

Which policy removes an item at random?

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.