InMemoryStoreBackend class

In-memory backend, for tests and for a host that opts out of persistence.

Implemented types

Constructors

InMemoryStoreBackend([Map<String, String>? initial])
Creates a backend, optionally pre-seeded with initial.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values Map<String, String>
Everything currently held, for assertions in tests.
no setter

Methods

delete(String key) Future<void>
Removes one key.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readAll() Future<Map<String, String>>
Reads every key this backend holds.
override
toString() String
A string representation of this object.
inherited
write(String key, String value) Future<void>
Writes one key.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited