Caching · Multiple choice

Every night a batch job reads each of millions of keys once, and the next morning the cache hit rate has collapsed. Which eviction policy would have resisted that?

hard

Options

Why

Under LRU the scan makes every one-off key "recently used", pushing out the keys real users ask for all day. LFU keeps the keys with many hits, so keys touched once are evicted first.

Review this in your daily deck All cards in Caching