CacheKit Docs

High-performance cache policies and supporting data structures.

View the Project on GitHub OxidizeLabs/cachekit

TinyLFU / W-TinyLFU (Admission + Eviction Design)

Goal

Improve hit rate under skewed and one-hit-wonder workloads by using frequency-based admission instead of admitting every miss.

Core Idea

TinyLFU is primarily an admission policy:

W-TinyLFU combines:

This keeps recent bursts responsive while avoiding long-tail pollution.

Core Data Structures (Typical)

Complexity & Overhead

Notes For CacheKit

References