Optional
maxSize: numberThe max size of the cache.
Optional
entries: null | Iterable<[K, V]>The initial entries of the cache.
Optional
maxSet an entry in the cache.
The cache collection.
cache.set(key, value);
The key of the entry.
The value of the entry.
Set the max size of the cache.
The cache collection.
cache.setMaxSize(100);
Optional
maxSize: numberThe max size of the cache.
A custom cache collection which has a max cache size.
Example