Skip to main content

Module cookie_cache

Module cookie_cache 

Source
Expand description

Authenticated session cookie cache snapshots and the compact wire codec.

The codec authenticates data; storage bypass and authoritative-read policy belong to the session resolver. No database model is reconstructed here.

Modules§

jwt
Symmetric session-cache JWT authentication and typed snapshot decoding.
runtime
Request-local cache cookies and genuine stored/cached snapshot transitions.

Structs§

CacheVersionContext
Immutable inputs to the cache version policy.
CompactCache
Verified compact cache data. The separately signed session token and both expiries must still be checked before treating this as a session.

Enums§

CacheValidation
Result of the authenticated envelope checks, before any storage fallback.
CacheVersionSource
Which actual snapshot a version callback receives.
CookieCacheVersion
Immutable configured cache version; empty literals use the source default.

Traits§

CookieCacheVersionResolver
Application-owned asynchronous cache version policy.

Functions§

cookie_header
Render a cache-related cookie using the source numeric Max-Age policy.
decode_compact
Authenticate a compact envelope. Malformed data is a cache miss, allowing the caller’s genuine storage fallback; it never supplies an identity.
effective_max_age
Source maxAge || 300, preserving fractions, negatives and infinity.
encode_compact
Encode the already-filtered canonical output.
validate_compact
Check the token binding, version callback, and source expiry guards.