Cache

LFU

Least frequently used: the eviction policy that counts how many times each item was used and removes the least used.

Example

With items used 500, 40 and 3 times, LFU removes the one used 3 times.

Test yourself: LFU

Evicting and spreading the cache

What does LFU look at to decide what to remove?

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.