Expand description
Bounded-memory cache wrapper — enforces a hard byte-budget cap. Bounded-memory cache wrapper.
BoundedCache wraps any Cache<Vec<u8>, Vec<u8>> and enforces a hard
byte-budget cap. When a new entry would push current_bytes over max_bytes,
entries are evicted in insertion order (oldest first) until the budget allows
the new entry to be inserted.
Structs§
- Bounded
Cache - A cache wrapper that caps total memory consumption by byte count.