Skip to main content

Module cache

Module cache 

Source
Expand description

TTL cache of verified node facts, held by crate::cluster::ClusterMembership (ADR-099 section 2).

Only verified facts enter. An entry is served while its facts are within TTL; expired entries are invisible to readers and removed by NodeFactsCache::evict_expired. A node’s facts are replaced only by a higher seq (or the same seq re-issued with identical content, which refreshes nothing), so a replayed older block cannot roll a node back. Deltas must be signed by the same key as the cached base, name its seq, and carry a strictly increasing delta seq.

Structs§

CachedNodeFacts
One cached, verified facts block plus what the receiver knows about it.
NodeFactsCache
Verified node facts with TTL.

Enums§

CacheError
Why the cache refused something.
InsertOutcome
What an insert did.
TierSource
Where a node’s tier came from. Only an operator-set tier is sticky: a mesh-derived tier follows the current connection (admission) every frame.

Constants§

MAX_CACHED_NODES
Most nodes held.
MAX_DISCOVERED
Most mesh-derived Discovered entries held at once, whatever the total.