ApiCacheConfig class

Persistent cache configuration for one API connection.

Constructors

ApiCacheConfig({bool enabled = true, ApiCachePolicy defaultPolicy = ApiCachePolicy.networkFirst, Duration defaultTtl = const Duration(minutes: 5), bool allowStaleOnNetworkError = true, bool clearPreviousSessionOnChange = true, int maxEntries = 1000})
const

Properties

allowStaleOnNetworkError → bool
final
clearPreviousSessionOnChange → bool
final
defaultPolicy → ApiCachePolicy
final
defaultTtl → Duration
final
enabled → bool
final
hashCode → int
The hash code for this object.
no setterinherited
maxEntries → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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