stash_hive library

Provides a Hive implementation of the Stash caching API for Dart

Classes

CacheStoreAdapter
The CacheStoreAdapter provides a bridge between the store and the backend
HiveAdapter<T extends BoxBase<Map>>
The HiveAdapter provides a bridge between the store and the Hive backend
HiveDefaultAdapter
HiveDefaultStore
HiveLazyAdapter
HiveLazyStore
HiveStore<T extends BoxBase<Map>>
Hive based implemention of a CacheStore

Functions

newHiveCache(String path, {String? cacheName, ExpiryPolicy? expiryPolicy, KeySampler? sampler, EvictionPolicy? evictionPolicy, int? maxEntries, CacheLoader? cacheLoader, dynamic fromEncodable(dynamic)?, HiveCipher? encryptionCipher, bool? crashRecovery}) → Cache
Creates a new Cache backed by a HiveDefaultStore
newLazyHiveCache(String path, {String? cacheName, ExpiryPolicy? expiryPolicy, KeySampler? sampler, EvictionPolicy? evictionPolicy, int? maxEntries, CacheLoader? cacheLoader, dynamic fromEncodable(dynamic)?, HiveCipher? encryptionCipher, bool? crashRecovery}) → Cache
Creates a new Cache backed by a HiveLazyStore