ZapCheckpointStore class
Checkpoint persistence: atomic tmp+rename writes (the
SnapshotStore discipline from #808), restorable across host
processes when the directory is shared.
Constructors
- ZapCheckpointStore({String? dir})
Properties
Methods
-
load(
String stateId) → Future< Map< String, Object?> ?> -
Loads the record for
stateId, from disk when persistent. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
save(
Map< String, Object?> snapshot) → Future<({String digest, String stateId})> -
Saves
snapshot, returning (stateId, digest). -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
digestOf(
Map< String, Object?> snapshot) → String -
The digest stamped on a snapshot record: sha256 over the canonical
(sorted-key) JSON of
snapshot. save stamps it; the restore path recomputes it over whatever is actually on disk, so an edited or planted checkpoint file is rejected instead of restored.