IReplacing
Defined in: packages/data/src/collection/ireplacing.ts:20
A bounded associative collection that replaces an entry instead of rejecting an over-capacity insert.
Positional ADTs have a natural eviction victim (see ILossy) contrary to associative ones.
Extends
Section titled “Extends”Extended by
Section titled “Extended by”Properties
Section titled “Properties”capacity
Section titled “capacity”
readonlycapacity:number
Defined in: packages/data/src/collection/ibounded.ts:17
The maximum number of elements the collection can hold.
Note: Infinity is not a legal value here — an unbounded type omits this
mixin.
Inherited from
Section titled “Inherited from”overflowPolicy
Section titled “overflowPolicy”
readonlyoverflowPolicy:ReplacementPolicy
Defined in: packages/data/src/collection/ireplacing.ts:25
The policy that determines which entry to replace when the collection exceeds its capacity.