MemorySnapshotStorage class
In-memory storage implementation for snapshots.
This implementation stores snapshots in memory only. Useful for testing or when persistence is not needed.
Note: Snapshots are lost when the application restarts.
- Implemented types
Constructors
- MemorySnapshotStorage({String defaultKey = 'latest'})
- Creates an in-memory snapshot storage.
Properties
- defaultKey → String
-
The default key used when no key is specified.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → Future< void> -
Clears all snapshots from storage.
override
-
delete(
String key) → Future< bool> -
Deletes a snapshot from storage.
override
-
listKeys(
) → Future< List< String> > -
Lists all available snapshot keys.
override
-
load(
[String? key]) → Future< Snapshot?> -
Loads a snapshot from storage.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
save(
Snapshot snapshot, [String? key]) → Future< void> -
Saves a snapshot to storage.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited