Readonly
cacheStatic
defaultShared default max size for all managers (can be changed globally).
Adds a raw object to the cache, constructing the holdable class. Automatically evicts oldest entries if the max size is exceeded.
Remove an entry by id.
creates a new channel in the server
A promise that resolves to the created channel
fetch a channel from the server
The channel to fetch. Can be a string, a channel object, or an API channel object.
Whether to force fetch the channel from the API. Defaults to true. If set to false, the method will return the channel from the cache if it exists.
A promise that resolves to the fetched channel
Adjust the maximum size for this manager at runtime.
Insertion ordered cache of items this manager holds.