Skip to main content

Module session_cache

Module session_cache 

Source
Expand description

API-only view of the latest durably completed session.

Consensus and reads that must share a database snapshot must not use this cache. The completion watch publishes the index and both encodings together.

Structs§

CachedSessionOutcome
A completed session’s canonical JSON wire values, shared without copying.

Enums§

OutcomeFormat
Which of the two existing outcome endpoints is being served.

Functions§

await_outcome
Return the exact requested session, never a newer cached session.
load
Rebuild from the authoritative database before starting the API or consensus.
publish_on_commit
Publish only after the transaction storing the signed outcome succeeds.

Type Aliases§

CompletedSession