Expand description
L2 distributed cache: the wire envelope, a serializer abstraction, the
DistributedCache backend trait, and an in-memory reference backend.
FusionCache’s L2 is any IDistributedCache; here it is any implementor of
DistributedCache (a byte-oriented key/value store with TTL). Values cross
the wire as a DistributedEntry — value plus the metadata needed to
reconstruct freshness on another node — encoded by a DistributedSerializer.
A Redis-backed backend is intentionally left to a feature-gated adapter; the
InMemoryDistributedCache here is a faithful reference used by tests and
single-process multi-instance scenarios.
Structs§
- Distributed
Entry - The serializable L2 envelope: a value together with the metadata required to rebuild its freshness/fail-safe state on any node.
- InMemory
Distributed Cache - An in-memory reference
DistributedCache— a concurrent map with TTL. - Json
Serializer - A JSON serializer built on
serde_json.
Traits§
- Distributed
Cache - A byte-oriented L2 distributed cache backend.
- Distributed
Serializer - Encodes and decodes
DistributedEntryvalues for the wire.