Module: lib/lru-cache
Classes
LRUCache
• LRUCache<K
, V
>: Object
A LRU cache intended for caching pure functions.
Type parameters
Name |
---|
K |
V |
Name | Type |
---|---|
constructor | <K, V>(maxSize : number ) => LRUCache <K , V > |
first | undefined | ListNode <K , V > |
last | undefined | ListNode <K , V > |
map | Map <K , ListNode <K , V >> |
maxSize | number |
get size() | number |
get | (key : K ) => undefined | V |
set | (key : K , value : V ) => void |