CacheKit Docs

High-performance cache policies and supporting data structures.

View the Project on GitHub OxidizeLabs/cachekit

LRFU (Least Recently/Frequently Used)

Goal

Provide a tunable continuum between recency (LRU-like) and frequency (LFU-like) to match different workload shapes with one policy family.

Core Idea

LRFU assigns each entry a combined recency-frequency value with exponential decay. A tunable parameter controls how quickly older accesses lose weight:

Eviction selects the entry with the lowest combined value.

Core Data Structures (Typical)

Complexity & Overhead

Notes For CacheKit

References