stash_memory library
Provides a in-memory implementation of the Stash caching API for Dart
Classes
- MemoryStore
-
In-memory Map backed implementation of a
CacheStore
Extensions
- MemoryStoreExtension on MemoryStore
- Extension over MemoryStore allowing the creation of multiple caches from the same store
Functions
-
newMemoryCache(
{String? cacheName, ExpiryPolicy? expiryPolicy, KeySampler? sampler, EvictionPolicy? evictionPolicy, int? maxEntries, CacheLoader? cacheLoader, EventListenerMode? eventListenerMode, MemoryStore? store}) → Cache -
Creates a new
Cache
backed by a MemoryStore -
newMemoryStore(
) → MemoryStore - Creates a new MemoryStore