Javacodegeeks iconJavacodegeeksNov 26, 2026

Why Caches Work: Locality, Zipf’s Law and Why TinyLFU Beats Plain LRU

A cache is a bet that the past predicts the future. Here is why that bet usually pays, and why remembering how often something was used beats remembering only when. Locality: the quiet promise behind every cache A cache only helps if programs reuse what they just touched. That habit is called locality. Temporal localit

Why Caches Work: Locality, Zipf’s Law and Why TinyLFU Beats Plain LRU

Share this story

Send the public story page.

Keep reading in the app

Open the app view to save this story, compare related coverage, and continue from the same source.

Open in app