CacheOptions constructor
const
CacheOptions({
- CachePolicy policy = CachePolicy.request,
- List<
int> ? hitCacheOnErrorExcept, - CacheKeyBuilder keyBuilder = defaultCacheKeyBuilder,
- Duration? maxStale,
- CachePriority priority = CachePriority.normal,
- CacheCipher? cipher,
- bool allowPostMethod = false,
- required CacheStore? store,
Implementation
const CacheOptions({
this.policy = CachePolicy.request,
this.hitCacheOnErrorExcept,
this.keyBuilder = defaultCacheKeyBuilder,
this.maxStale,
this.priority = CachePriority.normal,
this.cipher,
this.allowPostMethod = false,
required this.store,
});