Skip to main content

Module distributed

Module distributed 

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

DistributedEntry
The serializable L2 envelope: a value together with the metadata required to rebuild its freshness/fail-safe state on any node.
InMemoryDistributedCache
An in-memory reference DistributedCache — a concurrent map with TTL.
JsonSerializer
A JSON serializer built on serde_json.

Traits§

DistributedCache
A byte-oriented L2 distributed cache backend.
DistributedSerializer
Encodes and decodes DistributedEntry values for the wire.