embedcache-core
Pure-Rust core for embedcache: a content-addressed local embedding cache.
Backed by redb. Keys are blake3 hashes over
(text, model_name). Values are length-prefixed f32 little-endian vectors
plus an inserted-at timestamp so an optional TTL can be enforced.
Quick example
use Cache;
let dir = tempdir?;
let cache = open?;
cache.put?;
let vec = cache.get?;
assert_eq!;
# Ok::
License
Dual-licensed under MIT or Apache-2.0.