CacheConfig.standard constructor

const CacheConfig.standard({
  1. required IwsCache cache,
  2. Duration? ttl,
})

Creates a cache config with stale-while-revalidate disabled (default behavior)

Implementation

const CacheConfig.standard({
  required this.cache,
  this.ttl,
}) : staleWhileRevalidate = false;