pig/session_store/memory
In-memory, actor-serialized implementation of the synchronous session store.
Types
A handle to an in-memory session store.
pub opaque type MemoryStore
Values
pub fn snapshot(handle: MemoryStore) -> session_store.Session
Return a consistent snapshot of the current session.
pub fn start(
initial: session_store.Session,
) -> Result(MemoryStore, actor.StartError)
Start an in-memory store with initial as its durable session.
pub fn store(handle: MemoryStore) -> session_store.SessionStore
Adapt an in-memory store to the public synchronous session-store contract.