Home > @wixc3/patterns > LRUCache
BASIC (not optimal) implementation of the LRU cache
Signature:
export declare class LRUCache<K, V>
| Constructor | Modifiers | Description |
|---|---|---|
| [(constructor)(config)](/core3-utils/patterns.lrucache._constructor_.html) | Constructs a new instance of the `LRUCache` class |
| 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) |