core3-utils

@wixc3/patterns on Github

Home > @wixc3/patterns > LRUCache

LRUCache class

BASIC (not optimal) implementation of the LRU cache

Signature:

export declare class LRUCache<K, V> 

Constructors

Constructor Modifiers Description
[(constructor)(config)](/core3-utils/patterns.lrucache._constructor_.html) Constructs a new instance of the `LRUCache` class

Methods

Method Modifiers Description
[clear()](/core3-utils/patterns.lrucache.clear.html)
[delete(key)](/core3-utils/patterns.lrucache.delete.html)
[get(key)](/core3-utils/patterns.lrucache.get.html)
[has(key)](/core3-utils/patterns.lrucache.has.html)
[set(key, value)](/core3-utils/patterns.lrucache.set.html)
[size()](/core3-utils/patterns.lrucache.size.html)