DiskCache<T> constructor
DiskCache<T> ({
- required StorageBackend storage,
- CacheStrategy? strategy,
- String prefix = 'cache_',
Implementation
DiskCache({
required this.storage,
CacheStrategy? strategy,
this.prefix = 'cache_',
}) : strategy = strategy ?? const CacheStrategy();