CacheKit Docs

High-performance cache policies and supporting data structures.

View the Project on GitHub OxidizeLabs/cachekit

CAR operational spec

Spec maturity: stub

Executable oracle: invariant checks on CarCore; no full PolicyModel yet.

Clock with Adaptive Replacement (CAR): clock-based scan with adaptive hand and ghost entries. Victim is not uniquely determined from residency alone.

Harness contract (InvariantOnly)

Check When
len <= capacity After every Op
debug_validate_invariants() After every Op on CarCore

Per-Op adapter behavior

Op Effect
Insert(k) insert(k, v)
Get(k) get(k)
Peek(k) peek(k)
Remove(k) remove(k)
GetMut / Touch / EvictOne No-op in adapter

Observables

References