Skip to main content

Module memory

Module memory 

Source
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§

MemoryCache
An in-process Cache for L1 caching.