LRU (Least Recently Used) Map implementation
will remove the oldest item when reach the size limit
5.15.0
const m = new LRUMap(1)
m.set('a','v') // {'a':'v'}
m.set('b','c') // {'b':'c'}
maximum cache item number, default is 1024
Readonly
[toReadonly
sizethe number of elements in the Map.
Static
Readonly
[species]Executes a provided function once per each key/value pair in the Map, in insertion order.
Optional
thisArg: any
LRU (Least Recently Used) Map implementation