HiveStore<T extends BoxBase<Map> > class
abstract
Hive based implemention of a CacheStore
- Implementers
Constructors
-
HiveStore(HiveAdapter<
T> _adapter, {dynamic fromEncodable(Map<String, dynamic> )?}) - Builds a HiveStore.
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(
String name) → Future< void> - Clears a named cache store
-
containsKey(
String name, String key) → Future< bool> -
Checks if the named cache store contains a value indexed by
key
-
delete(
String name) → Future< void> - Deletes a named cache from a store
-
deleteAll(
) → Future< void> - Deletes all caches from the store
-
getEntry(
String name, String key) → Future< CacheEntry?> -
Returns the
CacheEntry
for the named cache value specifiedkey
. -
getStat(
String name, String key) → Future< CacheStat?> -
Returns the
CacheStat
for the specified cachekey
. It provides an optimized retrieval strategy that avoids reading theCacheEntry
implementation into memory -
getStats(
String name, Iterable< String> keys) → Future<Iterable< CacheStat?> > -
Returns a Iterable over all the non nullable
CacheStore
CacheStat
s keys requested of a named cache. It provides a optimized retrieval strategy that avoids reading theCacheEntry
implementation into memory -
keys(
String name) → Future< Iterable< String> > -
Returns a Iterable over all the
CacheStore
keys for the named cache -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
putEntry(
String name, String key, CacheEntry entry) → Future< void> -
Puts a cache entry identified by
key
on the named cacheCacheStore
. The value is overriden if already exists or added if it does not exists. -
remove(
String name, String key) → Future< void> -
Removes the stored
CacheEntry
for the specifiedkey
. -
setStat(
String name, String key, CacheStat stat) → Future< void> -
Sets the cache
CacheStat
byname
andkey
. -
size(
String name) → Future< int> - The number of entries in the store for the named cache
-
stats(
String name) → Future< Iterable< CacheStat> > -
Returns a Iterable over all the
CacheStore
CacheStat
s for a named cache. It provides a optimized retrieval strategy that avoids reading theCacheEntry
implementation into memory -
toString(
) → String -
A string representation of this object.
inherited
-
values(
String name) → Future< Iterable< CacheEntry> > -
Returns a Iterable over all the
CacheStore
CacheEntry
s of a named cache.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited