interface LimitedCollectionOptions

export interface LimitedCollectionOptions<Key, Value>

Options for defining the behavior of a LimitedCollection

Type Parameters

Key

Value

optionalexternal
keepOverLimit? : function

A function, which is passed the value and key of an entry, ran to decide to keep an entry past the maximum size

optional
maxSize? : number = Infinity

The maximum size of the Collection

optional
keepOverLimit(
value: Value
key: Key
) : boolean