CacheStore class abstract
- Inheritance
-
- Object
- Store<
CacheInfo, CacheEntry> - CacheStore
- Available extensions
Constructors
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
-
cache<
T> ({CacheManager? manager, String? name, dynamic fromEncodable(Map< String, dynamic> )?, KeySampler? sampler, EvictionPolicy? evictionPolicy, int? maxEntries, ExpiryPolicy? expiryPolicy, CacheLoader<T> ? cacheLoader, EventListenerMode? eventListenerMode, bool? statsEnabled, CacheStats? stats}) → Future<Cache< T> > -
Available on Store<
Creates a new Cache backed by a StoreCacheInfo, CacheEntry> , provided by the CacheExtension extension -
clear(
String name) → Future< void> -
Clears a partition
inherited
-
close(
) → Future< void> -
Closes a store
inherited
-
containsKey(
String name, String key) → Future< bool> -
Checks if the partition contains a value indexed by
key
inherited -
create(
String name, {dynamic fromEncodable(Map< String, dynamic> )?}) → Future<void> -
Creates a partition
inherited
-
delete(
String name) → Future< void> -
Deletes a partition
inherited
-
deleteAll(
) → Future< void> -
Deletes all partitions
inherited
-
getEntry(
String name, String key) → Future< CacheEntry?> -
Returns the partition entry specified by
key
.inherited -
getInfo(
String name, String key) → Future< CacheInfo?> -
Returns the info for the specified
key
in a partition.inherited -
getInfos(
String name, Iterable< String> keys) → Future<Iterable< CacheInfo?> > -
Returns a Iterable over all the non nullable infos in a partition
inherited
-
infos(
String name) → Future< Iterable< CacheInfo> > -
Returns a Iterable over all the infos in the partition.
inherited
-
keys(
String name) → Future< Iterable< String> > -
Returns a Iterable over all the keys in the partition
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
putEntry(
String name, String key, CacheEntry entry) → Future< void> -
Puts an entry identified by
key
on a partition. The value is overriden if already exists or added if it does not exists.inherited -
remove(
String name, String key) → Future< void> -
Removes the partition entry by
key
.inherited -
setInfo(
String name, String key, CacheInfo info) → Future< void> -
Sets the partition info indexed by
key
.inherited -
size(
String name) → Future< int> -
The number of entries in the partition
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
values(
String name) → Future< Iterable< CacheEntry> > -
Returns a Iterable over all entries in a partition
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited