CacheOptions class
Properties
-
expiry
→ Duration
-
The duration after the cached result of the request
will be expired.
final
-
forceCache
→ bool
-
Forces to return the cached value if available (even
if expired).
final
-
forceUpdate
→ bool
-
Forces to request a new value, even if an valid
cache is available.
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
ignoreCache
→ bool
-
Indicates whether the request should bypass all caching logic.
final
-
keyBuilder
→ CacheKeyBuilder
-
Builds the unqie key used for indexing a request in cache.
final
-
returnCacheOnError
→ bool
-
If
true
, on error, if a value is available in the
store if is returned as a successful response (even
if expired).
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
shouldBeSaved
→ CacheShouldBeSaved
-
A way of filtering responses (for exemple regarding the result status code, or the content length).
final
-
store
→ CacheStore?
-
The store used for caching data.
final
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Properties
-
uuid
→ Uuid
-
final