Simple LRUCache implementation based on JavaScript Map.
Class initialization with the capacity
const LRU = new LRUCache(3);
Stores the given key value pair
LRU.set(`product-item-3521`, `1562`)
Gets the value of the key
LRU.get(`product-item-3521`)
Returns the size of the cache
LRU.size()
Checks the key in currently in cache.
LRU.has(`product-item-3521`)
Returns the keys of actively stored values
LRU.keys()
LRU.getFirst()
Removes all the values from cache
LRU.clear()