CacheManager class Core

A manager for all the caches associated with a client.

Provides a way to obtain the Cache instance associated with a given cache identifier. Also provides utilities to inspect all the caches in a client.

Empty caches are automatically discarded.

Constructors

CacheManager(Nyxx client)
Create a new cache manager for a client.

Properties

caches → Map<String, Cache>
A map containing all the caches attached to client.
no setter
client → Nyxx
The client this CacheManager is for.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getCache<T>(String identifier, CacheConfig<T> config) → Cache<T>
Get the cache associated with identifier, or create it if it does not yet exist.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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