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