CacheOptions constructor
const
CacheOptions({
- bool forceUpdate = false,
- bool forceCache = false,
- bool returnCacheOnError = true,
- bool ignoreCache = false,
- CacheKeyBuilder keyBuilder = defaultCacheKeyBuilder,
- CacheShouldBeSaved shouldBeSaved = defaultShouldBeSaved,
- CacheStore? store,
- Duration expiry = const Duration(minutes: 5),
Implementation
const CacheOptions({
this.forceUpdate = false,
this.forceCache = false,
this.returnCacheOnError = true,
this.ignoreCache = false,
this.keyBuilder = defaultCacheKeyBuilder,
this.shouldBeSaved = defaultShouldBeSaved,
this.store,
this.expiry = const Duration(minutes: 5),
});