A map that notifies when an entry is evicted.
Mirrors the ES2015 Map<K, V> interface (no iteration methods) so implementers are not coupled to the evolving MapIterator shape in newer lib types.
Map<K, V>
MapIterator
When an entry is added when at capacity, the least recently used entry will be removed. This callback can be set to be notified with the element and key being evicted, which may be used for disposal.
Readonly
Optional
A map that notifies when an entry is evicted.
Mirrors the ES2015
Map<K, V>interface (no iteration methods) so implementers are not coupled to the evolvingMapIteratorshape in newer lib types.