CacheKit Docs

High-performance cache policies and supporting data structures.

View the Project on GitHub OxidizeLabs/cachekit

GreedyDual-Size (GDS)

Goal

Improve byte-level cache efficiency by preferring entries with better value-per-byte when item sizes and miss costs vary.

Core Idea

Each resident entry carries a priority H; eviction removes the smallest H.

A common GDS-style score:

Where:

The inflation term prevents old low-value entries from sticking forever.

Core Data Structures (Typical)

Complexity & Overhead

Notes For CacheKit

References