CacheConfig constructor

CacheConfig({
  1. Duration defaultMaxAge = const Duration(days: 7),
  2. Duration? defaultMaxStale,
  3. String defaultRequestMethod = "POST",
  4. String? databasePath,
  5. String databaseName = "DioCache",
  6. String? baseUrl,
  7. bool skipDiskCache = false,
  8. bool skipMemoryCache = false,
  9. int maxMemoryCacheCount = 100,
  10. Encrypt? encrypt,
  11. Decrypt? decrypt,
  12. 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});