new BaseClientCollectionCache
src/collections/basecollection.ts:219new BaseClientCollectionCache<K, V>(
client: ShardClient,
options?: boolean | BaseClientCollectionOptions,
)Basic Client Cache Collection, the ShardClient instance is attached to this
Basic Client Cache Collection, the ShardClient instance is attached to this
import { Collections } from 'detritus-client';
Collections.BaseClientCollectionCache;new BaseClientCollectionCache<K, V>(
client: ShardClient,
options?: boolean | BaseClientCollectionOptions,
)[iterator](): IterableIterator<[K, V]>clear(): voiddelete(cacheKey: K): booleandelete(cacheKey: K | null | undefined, key: K): booleanforEach(func: (v: V, k: K, map: Map<K, V>) => void, thisArg?: any): voidget(cacheKey: K): BaseCollection<K, V> | undefinedget(cacheKey: K | null | undefined, key: K): V | undefinedgetOrInsert(cacheKey: K, key: K, defaultValue: V): VgetOrInsertComputed(cacheKey: K, key: K, func: (key: K) => V): Vhas(cacheKey: K): booleanhas(cacheKey: K | null | undefined, key: K): booleaninsertCache(cacheKey: K): BaseCollection<K, V>keys(): IterableIterator<K>set(cacheKey: K, key: K, value: V): thissetEnabled(value: boolean): voidvalues(): IterableIterator<V>