ExpiryCache class

Constructors

ExpiryCache({Duration duration = const Duration(hours: 24)})
const

Properties

duration Duration
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addToCache(Response networkValue, String key) → void
inherited
get(Function networkRequest, String key) Future<Response>
getValueFromStorage(String key) → ResponseCacheItem?
inherited
hasCacheExpired(ResponseCacheItem cachedValue, Duration cacheDuration) bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited