Which eviction policy suits a pure cache where the least recently used entries should be discarded under memory pressure?
- A noeviction
- B allkeys-lru (correct answer)
- C volatile-ttl
- D allkeys-random
Shortcut: allkeys-lru evicts the least recently used key regardless of TTL, which is the standard choice for a cache. noeviction would instead return write errors when memory fills.