CacheManager class abstract

Implementers

Constructors

CacheManager()

Properties

hashCode int
The hash code for this object.
no setterinherited
names Iterable<String>
Returns a Iterable over all the Cache names
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

get<T, V extends Cache<T>>(String name) → V?
Gets an existing Cache
getCache<T>(String name) Cache<T>?
Gets an existing Cache
getTieredCache<T>(String name) TieredCache<T>?
Gets an existing TieredCache
newGenericCache<T>(Store<CacheInfo, CacheEntry> store, {String? name, dynamic fromEncodable(Map<String, dynamic>)?, ExpiryPolicy? expiryPolicy, KeySampler? sampler, EvictionPolicy? evictionPolicy, int? maxEntries, CacheLoader<T>? cacheLoader, Clock? clock, EventListenerMode? eventListenerMode, bool? statsEnabled, CacheStats? stats}) Future<Cache<T>>
Builds a new Cache
newTieredCache<T>(Cache<T> primary, Cache<T> secondary, {String? name, Clock? clock, bool? statsEnabled, CacheStats? stats}) TieredCache<T>
Builds a new Tiered Cache
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(String name) → void
Removes a Cache from this CacheManager if present
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance CacheManager
The default instance of the CacheManager
final