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?
RR picks at random: with 1,000 items, each has a 1 in 1,000 chance of going, regardless of when or how much it was used.
0/1
â–¶ Play