Options for generating a filter function based on lifetime
Name | Constraints | Optional | Default | Description |
---|---|---|---|---|
Key | No | None | ||
Value | No | None |
A function that takes an entry, key, and the collection and returns a boolean,
true
when the entry should not be checked for sweepability.Default value
() = falsegetComparisonTimestamp?:(value: Value, key: Key, collection: LimitedCollection<Key, Value>) => number
A function that takes an entry, key, and the collection and returns a timestamp to compare against in order to determine the lifetime of the entry.