DiskCache<T> constructor

DiskCache<T>({
  1. required StorageBackend storage,
  2. CacheStrategy? strategy,
  3. String prefix = 'cache_',
})

Implementation

DiskCache({
  required this.storage,
  CacheStrategy? strategy,
  this.prefix = 'cache_',
}) : strategy = strategy ?? const CacheStrategy();