Orkid

orkid-lru-cache

Simple, dependency-free LRU cache for Rust with generic keys and values.

A minimal least-recently-used cache: O(1) get/put, generic K/V, no async runtime or unsafe required. Extracted from Orkid's quote hot paths where allocation-free lookups matter.

Install

cargo add orkid-lru-cache

When to use

You need an in-process LRU cache without pulling in tokio or a full caching framework.

On this page