CacheOptions constructor

const CacheOptions({
  1. bool forceUpdate = false,
  2. bool forceCache = false,
  3. bool returnCacheOnError = true,
  4. bool ignoreCache = false,
  5. CacheKeyBuilder keyBuilder = defaultCacheKeyBuilder,
  6. CacheShouldBeSaved shouldBeSaved = defaultShouldBeSaved,
  7. CacheStore? store,
  8. 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),
});