>_

Caching Simulator

Five strategies and four eviction policies with live request-flow visualization.

Hit rate

0%

Hits

0

Misses

0

Writes

0

Cache (6 slots)LRU · dirty 0

Request stream (recent)

Run to stream requests.

How this simulator works

Five cache strategies and four eviction policies, visualized as live request flow. Watch hit rate change as the workload and policy shift.

Eviction policies

  • LRU — evicts the least recently used entry.
  • LFU — evicts the least frequently used entry.
  • FIFO — evicts the oldest inserted entry.
  • Random — evicts an arbitrary entry.

Why workload matters

A skewed (Zipf) workload keeps a small hot set in cache, so LRU and LFU shine. A full scan touches every key once, so no policy helps and hit rate collapses — the classic cache pollution case.