How it works
LRU
Least recently used eviction works well when recent access predicts near-future reuse, but one large scan can displace a valuable working set.
LFU
Least frequently used eviction protects repeatedly popular entries but needs aging so old popularity does not persist forever.
TTL and freshness
Time-to-live limits staleness and memory duration, but synchronized expiry can trigger a burst of backend reads.
Admission matters
Rejecting low-value entries before insertion can outperform choosing what to evict after every miss is admitted.