CacheKit Docs

High-performance cache policies and supporting data structures.

View the Project on GitHub OxidizeLabs/cachekit

Hyperbolic Caching

Goal

Combine recency and frequency in a compact, practical scoring model with good hit-rate behavior under skewed and shifting workloads.

Core Idea

Each resident entry gets a score that decays with age and increases with frequency. A common formulation is proportional to:

Where:

Eviction removes the smallest score, so stale/low-value entries fall out first.

Core Data Structures (Typical)

Complexity & Overhead

Notes For CacheKit

References