Expand description
A simple, dependency-free in-process cache (L1, l1-memory).
Backed by a HashMap<String, (Vec<u8>, Instant)> guarded by a Mutex.
Entries are lazily expired on access by comparing against Instant; a
monotonic clock keeps TTLs robust against wall-clock discontinuities.
Modules§
- typed
- A typed view over a byte cache using
serde-compatible (JSON) encoding.
Structs§
- Memory
Cache - An in-process
Cachefor L1 caching.