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§
- Cache
Version Context - Immutable inputs to the cache version policy.
- Compact
Cache - Verified compact cache data. The separately signed session token and both expiries must still be checked before treating this as a session.
Enums§
- Cache
Validation - Result of the authenticated envelope checks, before any storage fallback.
- Cache
Version Source - Which actual snapshot a version callback receives.
- Cookie
Cache Version - Immutable configured cache version; empty literals use the source default.
Traits§
- Cookie
Cache Version Resolver - 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.