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