MemoryKeyValueStore class
In-memory store for tests and for hosts that opt out of persistence.
- Implemented types
Constructors
-
MemoryKeyValueStore([Map<
String, String> ? initial]) -
Creates an empty store (or one seeded with
initial).
Properties
Methods
-
delete(
String key) → Future< void> -
Removes
key.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
String key) → Future< String?> -
Reads
key, ornullwhen absent.override -
toString(
) → String -
A string representation of this object.
inherited
-
write(
String key, String value) → Future< void> -
Writes
valueunderkey.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited