stash_file library

Provides a file implementation of the stash caching API for Dart

Classes

FileStore
File based implemention of a CacheStore

Extensions

FileStoreExtension on FileStore
Extension over FileStore allowing the creation of multiple caches from the same store

Functions

newLocalFileCache({String? cacheName, KeySampler? sampler, EvictionPolicy? evictionPolicy, int? maxEntries, ExpiryPolicy? expiryPolicy, CacheLoader? cacheLoader, EventListenerMode? eventListenerMode, FileStore? store, String? path, CacheCodec? codec, dynamic fromEncodable(dynamic)?}) → Cache
Creates a new Cache backed by a local FileStore
newLocalFileStore({String? path, CacheCodec? codec, dynamic fromEncodable(dynamic)?}) FileStore
Creates a new in-memory FileStore
newMemoryFileCache({String? cacheName, ExpiryPolicy? expiryPolicy, KeySampler? sampler, EvictionPolicy? evictionPolicy, int? maxEntries, CacheLoader? cacheLoader, EventListenerMode? eventListenerMode, FileStore? store, String? path, CacheCodec? codec, dynamic fromEncodable(dynamic)?}) → Cache
Creates a new Cache backed by a in-memory FileStore
newMemoryFileStore({String? path, CacheCodec? codec, dynamic fromEncodable(dynamic)?}) FileStore
Creates a new in-memory FileStore