InMemorySessionPersistence class
Volatile in-memory persistence — the default backend.
Sessions restored from it survive container recreation within the same process, which is exactly enough to validate the persistence contract; durable backends plug in behind the same interface.
- Implemented types
Constructors
Properties
Methods
-
load(
) → Future< Map< String, dynamic> ?> -
Loads the last persisted envelope, or
nullwhen nothing was saved (or the backend is unavailable — persistence is best-effort and must never crash the container).override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
save(
Map< String, dynamic> envelope) → Future<void> -
Persists
envelope(the container'stoJson()output).override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited