CollectionOptions
Documentation / @discordeno/utils / CollectionOptions
Interface: CollectionOptions<K, V>
Defined in: packages/utils/src/Collection.ts:152
Type Parameters
K
K
V
V
Properties
maxSize?
optionalmaxSize:number
Defined in: packages/utils/src/Collection.ts:156
The maximum number of items allowed in the collection.
sweeper?
optionalsweeper:CollectionSweeper<K,V>
Defined in: packages/utils/src/Collection.ts:154
Handler to clean out the items in the collection every so often.