CacheManager class Null safety

Implementers

Constructors

CacheManager()

Properties

hashCode int
The hash code for this object.
read-only, inherited
names Iterable<String>
Returns a Iterable over all the Cache names
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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, 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 non-existent 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