LimitedCollectionOptions

export interface LimitedCollectionOptions<Key, Value>
export interface LimitedCollectionOptions<Key, Value>
Options for defining the behavior of a LimitedCollection
NameConstraintsOptionalDefaultDescription
KeyNoNone
ValueNoNone
keepOverLimit?:(value: Value, key: Key, collection: LimitedCollection<Key, Value>) => boolean
A function, which is passed the value and key of an entry, ran to decide to keep an entry past the maximum size
maxSize?:number
The maximum size of the Collection (default: Infinity)