CacheManager class abstract
Base class for implementing cachce managers.
Cache manaager is used by BaseApi
class to cache responses.
BaseApi will not handle cache age, it should be handled by CacheManager implementation.
- 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(
CacheKey key) → FutureOr< void> -
Clears cache saved under provided
key
. -
clearAll(
) → FutureOr< void> - Clears all stored cache.
-
dispose(
) → void - Disposes cache manager.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
CacheKey? key) → FutureOr< Response> ? -
Reads cache saved under provided
key
. -
toString(
) → String -
A string representation of this object.
inherited
-
write(
CacheKey? key, Response? response) → FutureOr< void> -
Caches
response
under providedkey
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited