Skip to main content

Crate hns_cache

Crate hns_cache 

Source
Expand description

Bounded positive and negative cache for HNS browser resolution.

Keys are session-secret-derived SHA-256 values rather than qnames. Entries are bound to runtime generation, policy generation, and exact Handshake chain anchor. Expired or mismatched entries are removed before use.

Structs§

CacheAdmission
Metadata checked when admitting one cache value.
CacheGeneration
Exact authority state under which an entry was produced.
CacheKey
Opaque per-session query key.
CacheLimits
Bounds for one cache instance.
CacheStats
Name-free cache counters.
ExpiringLru
Small process-local expiring LRU for data that is already bound to an authenticated authority fingerprint by its key.
SecureCache
Bounded LRU cache with explicit TTL and authority-generation binding.

Enums§

CacheDisposition
Positive or authenticated-negative cache disposition.
CacheError
Cache configuration, key, bound, or invariant failure.
NegativeKind
Negative cache result.