CacheConfig class

Constructors

CacheConfig({Duration defaultMaxAge = const Duration(days: 7), Duration? defaultMaxStale, String defaultRequestMethod = "POST", String? databasePath, String databaseName = "DioCache", String? baseUrl, bool skipDiskCache = false, bool skipMemoryCache = false, int maxMemoryCacheCount = 100, Encrypt? encrypt, Decrypt? decrypt, ICacheStore? diskStore})

Properties

baseUrl String?
final
databaseName String
final
databasePath String?
final
decrypt Decrypt?
final
defaultMaxAge Duration
final
defaultMaxStale Duration?
final
defaultRequestMethod String
final
diskStore ICacheStore?
final
encrypt Encrypt?
final
hashCode int
The hash code for this object.
no setterinherited
maxMemoryCacheCount int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
skipDiskCache bool
final
skipMemoryCache bool
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

Operators

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