CacheKit Docs

High-performance cache policies and supporting data structures.

View the Project on GitHub OxidizeLabs/cachekit

FIFO (First-In, First-Out)

Feature: policy-fifo

Goal

Evict the oldest inserted resident entry when the cache is full.

Core Data Structures

Typical O(1) FIFO implementation:

In cachekit, FIFO is implemented in src/policy/fifo/ with:

Operations

insert(key, value)

get(key)

pop_oldest()

Complexity & Overhead

Edge Cases / Implementation Notes

References