CachePolicy constructor
CachePolicy({
- List<
String> ? cacheBypassRequestHeaderNames, - CachePolicyCacheKeyPolicy? cacheKeyPolicy,
- String? cacheMode,
- Duration? clientTtl,
- Duration? defaultTtl,
- Duration? maxTtl,
- bool? negativeCaching,
- List<
CachePolicyNegativeCachingPolicy> ? negativeCachingPolicy, - bool? requestCoalescing,
- Duration? serveWhileStale,
Implementation
CachePolicy({
this.cacheBypassRequestHeaderNames,
this.cacheKeyPolicy,
this.cacheMode,
this.clientTtl,
this.defaultTtl,
this.maxTtl,
this.negativeCaching,
this.negativeCachingPolicy,
this.requestCoalescing,
this.serveWhileStale,
});