CacheConfig constructor
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,
Implementation
CacheConfig(
{this.defaultMaxAge = const Duration(days: 7),
this.defaultMaxStale,
this.defaultRequestMethod = "POST",
this.databasePath,
this.databaseName = "DioCache",
this.baseUrl,
this.skipDiskCache = false,
this.skipMemoryCache = false,
this.maxMemoryCacheCount = 100,
this.encrypt,
this.decrypt,
this.diskStore});