InMemoryDeferredLinkStore class
For tests only. A DeferredLinkStore that keeps its values in memory.
Never use it in an app: the values are gone when the process ends, so the
deferred-link check would run, and could deliver, again on every launch.
Pass the same instance to a second Strybok to simulate a restart.
- Implemented types
Constructors
-
InMemoryDeferredLinkStore([Map<
String, String> ? values])
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
String key) → Future< String?> -
The value stored for
key, ornull.override -
toString(
) → String -
A string representation of this object.
inherited
-
write(
String key, String value) → Future< void> -
Stores
valueforkey; must have completed durably when it returns.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited