CacheStore class Null safety

The definition of a cache store

Constructors

CacheStore()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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 or the store itself if a named cache is stored individually [...]
deleteAll() Future<void>
Deletes the store a if a store is implemented in a way that puts all the named caches in one storage, or stores(s) if multiple storages are used
getEntry(String name, String key) Future<CacheEntry?>
Returns the CacheEntry for the named cache value specified key. [...]
getStat(String name, String key) Future<CacheStat?>
Returns the CacheStat for the specified cache key. It provides an optimized retrieval strategy that avoids reading the CacheEntry implementation into memory [...]
getStats(String name, Iterable<String> keys) Future<Iterable<CacheStat?>>
Returns a Iterable over all the non nullable CacheStore CacheStats keys requested of a named cache. It provides a optimized retrieval strategy that avoids reading the CacheEntry 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 non-existent 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 cache CacheStore. 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 specified key. [...]
setStat(String name, String key, CacheStat stat) Future<void>
Sets the cache CacheStat by name and key. [...]
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 CacheStats for a named cache. It provides a optimized retrieval strategy that avoids reading the CacheEntry 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 CacheEntrys of a named cache. [...]

Operators

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