CacheStore class abstract
Pluggable cache backend. Implement this to persist cached responses somewhere other than memory.
- Implementers
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 all entries.
-
delete(
String key) → Future< void> -
Removes the entry for
key, if present. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
String key) → Future< CacheEntry?> -
Returns the entry for
key, ornullif absent. -
toString(
) → String -
A string representation of this object.
inherited
-
write(
CacheEntry entry) → Future< void> -
Stores
entry, replacing any existing entry with the same key.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited