MemoryStore class
In-memory Map backed implementation of a CacheStore
- Inheritance
-
- Object
- CacheStore
- MemoryStore
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
-
clear(
String name) → Future< void> -
Clears a named cache store
override
-
containsKey(
String name, String key) → Future< bool> -
Checks if the named cache store contains a value indexed by
keyoverride -
delete(
String name) → Future< void> -
Deletes a named cache from a store
override
-
deleteAll(
) → Future< void> -
Deletes all caches from the store
override
-
getEntry(
String name, String key) → Future< CacheEntry?> -
Returns the CacheEntry for the named cache value specified
key.override -
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 memoryoverride -
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
override
-
keys(
String name) → Future< Iterable< String> > -
Returns a Iterable over all the CacheStore keys for the named cache
override
-
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
keyon the named cache CacheStore. The value is overriden if already exists or added if it does not exists.override -
remove(
String name, String key) → Future< void> -
Removes the stored CacheEntry for the specified
key.override -
setStat(
String name, String key, CacheStat stat) → Future< void> -
Sets the cache CacheStat by
nameandkey.override -
size(
String name) → Future< int> -
The number of entries in the store for the named cache
override
-
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
override
-
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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited