CachePolicy constructor

CachePolicy({
  1. List<String>? cacheBypassRequestHeaderNames,
  2. CachePolicyCacheKeyPolicy? cacheKeyPolicy,
  3. String? cacheMode,
  4. Duration? clientTtl,
  5. Duration? defaultTtl,
  6. Duration? maxTtl,
  7. bool? negativeCaching,
  8. List<CachePolicyNegativeCachingPolicy>? negativeCachingPolicy,
  9. bool? requestCoalescing,
  10. Duration? serveWhileStale,
})

Implementation

CachePolicy({
  this.cacheBypassRequestHeaderNames,
  this.cacheKeyPolicy,
  this.cacheMode,
  this.clientTtl,
  this.defaultTtl,
  this.maxTtl,
  this.negativeCaching,
  this.negativeCachingPolicy,
  this.requestCoalescing,
  this.serveWhileStale,
});