stash_sembast library

Provides a Sembast implementation of the Stash caching API for Dart

Classes

CacheStoreAdapter
The CacheStoreAdapter provides a bridge between the store and the backend
SembastAdapter
The SembastAdapter provides a bridge between the store and the Hive backend
SembastFileAdapter
SembastMemoryAdapter
SembastStore
Sembast based implemention of a CacheStore
SembastWebAdapter

Functions

newSembastFileCache(File file, {String? cacheName, ExpiryPolicy? expiryPolicy, KeySampler? sampler, EvictionPolicy? evictionPolicy, int? maxEntries, CacheLoader? cacheLoader, dynamic fromEncodable(dynamic)?, int? databaseVersion, OnVersionChangedFunction? onVersionChanged, DatabaseMode? databaseMode, SembastCodec? sembastCodec}) → Cache
Creates a new Cache backed by a SembastStore
newSembastMemoryCache({String? cacheName, ExpiryPolicy? expiryPolicy, KeySampler? sampler, EvictionPolicy? evictionPolicy, int? maxEntries, CacheLoader? cacheLoader, dynamic fromEncodable(dynamic)?, int? databaseVersion, OnVersionChangedFunction? onVersionChanged, DatabaseMode? databaseMode, SembastCodec? sembastCodec}) → Cache
Creates a new Cache backed by a in-memory SembastStore