mytheclipse-cache
A unified multi-layer cache abstraction so your app isn't locked to one cache
provider. Combines an in-process L1 cache with a distributed L2 cache
(e.g. Redis/Valkey) behind one simple get/set/invalidate API, plus a
cache-aside / auto-refresh helper.
Features
l1-memory(default) — zero-dependency in-process cache.l1-moka— high-performance Moka-backed L1 with TTL/max-capacity.l2-redis— Redis/Valkey L2 viafred.cache-aside(default) — read-through cache-aside helper.
Usage
use ;
let cache = new;
cache.set.await.unwrap;
let v = cache.get.await.unwrap;
// Cache-aside: fill misses from a source of truth.
let aside = new;
let _ = aside.get.await.unwrap;