CacheStorage<K, V> class abstract

Extend this class to implement your own CacheStorage.

Constructors

CacheStorage()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() Future<void>
Clear all store.
delete(K cacheKey) Future<void>
Delete cache by cacheKey.
ensureInitialized() Future
Must return a future that completes after the storage is ready to be used.
get(K cacheKey) Future<CacheEntry<V>?>
Get CacheEntry by key.
getAll() Future<List<V>>
Get all stored cache entries.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put(K cacheKey, V data, {int? storeTime}) Future<void>
Put data by cacheKey with storeTime timestamp.
toString() String
A string representation of this object.
inherited
watch() Stream<List<V>>
Returns a stream to listen all changes in the storage.

Operators

operator ==(Object other) bool
The equality operator.
inherited