InMemoryCache class
Simplest CacheManager implementation that stores ApiResponses in memory. The cache will be cleared, along with api 'dispose' method invocation.
- Inheritance
-
- Object
- CacheManager
- InMemoryCache
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) → void -
Clears cache saved under provided
key
.override -
clearAll(
) → void -
Clears all stored cache.
override
-
dispose(
) → void -
Disposes cache manager.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
CacheKey? key) → Response? -
Reads cache saved under provided
key
.override -
toString(
) → String -
A string representation of this object.
inherited
-
write(
CacheKey? key, Response? response) → void -
Caches
response
under providedkey
.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited