MemoryApiCacheStore class
Keeps answers for the life of the process. The default store, and the one for tests.
- Implemented types
Constructors
Properties
- 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> -
Removes every answer. The owner is left as it is.
override
-
get(
String key) → Future< StoredAnswer?> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prune(
{required DateTime savedBefore}) → Future< void> -
Removes every answer saved before
savedBefore.override -
put(
String key, StoredAnswer answer) → Future< void> -
override
-
readOwner(
) → Future< String?> -
The identity the saved answers belong to, as last written.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
writeOwner(
String? owner) → Future< void> -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited