Skip to main content

Module cache

Module cache 

Source
Expand description

Canonical QSync cache keys (E06.3).

Key = SHA-384 transcript over scope || source_generation || policy_generation || abi_tag. Lossy eviction is never evidence of absence. A miss is QdnfError::Incomplete, never EmptyInSnapshot.

Structs§

CacheTable
Sixteen-slot generation-bound cache. Not a completeness oracle.

Enums§

CacheLookup
Lookup of a generation-bound cache entry.

Constants§

MAX_CACHE

Functions§

cache_key
SHA-384 transcript key over scope and the two generations plus ABI tag.
evict
Drop the slot for key. Remaining lookups are CacheLookup::Miss.
eviction_proves_absence
Lossy eviction never becomes evidence of absence.
insert
Insert value under the canonical key. Same key+value is idempotent.
lookup
Look up by live generations. Generation mismatch on the same scope/ABI is CacheLookup::UntrustedMiss. Absence after eviction is CacheLookup::Miss.
miss_is_incomplete
A miss is Incomplete, never EmptyInSnapshot.