stash_dio library

A cache extension for Dio using the stash caching library

Classes

CacheInterceptor
A implementation of the InterceptorsWrapper providing a Cache interceptor

Functions

newCacheInterceptor(String pattern, Cache cache) → Interceptor
Creates a new Interceptor backed by the provided Cache
newMemoryCacheInterceptor(String pattern, String cacheName, {KeySampler? sampler, EvictionPolicy? evictionPolicy, int? maxEntries, ExpiryPolicy? expiryPolicy, CacheLoader? cacheLoader, EventListenerMode? eventListenerMode, MemoryStore? store}) → Interceptor
Creates a new Interceptor backed by a Cache with MemoryStore storage
newTieredCacheInterceptor(String pattern, Cache primary, Cache secondary) → Interceptor
Creates a new Interceptor backed by a primary and a secondary Cache