stash_disk library
Provides a disk implementation of the Stash caching API for Dart
Classes
- DiskStore
-
Disk based implemention of a
CacheStore
Functions
-
newLocalDiskCache(
{String? path, String? cacheName, ExpiryPolicy? expiryPolicy, KeySampler? sampler, EvictionPolicy? evictionPolicy, int? maxEntries, CacheLoader? cacheLoader, CacheCodec? codec, dynamic fromEncodable(dynamic)?}) → Cache -
Creates a new
Cache
backed by a local DiskStore -
newMemoryDiskCache(
{String? path, String? cacheName, ExpiryPolicy? expiryPolicy, KeySampler? sampler, EvictionPolicy? evictionPolicy, int? maxEntries, CacheLoader? cacheLoader, CacheCodec? codec, dynamic fromEncodable(dynamic)?}) → Cache -
Creates a new
Cache
backed by a in-memory DiskStore