Skip to content
On this page

Module: lib/lru-cache

Classes

LRUCache

LRUCache<K, V>: Object

A LRU cache intended for caching pure functions.

Type parameters

Name
K
V
NameType
constructor<K, V>(maxSize: number) => LRUCache<K, V>
firstundefined | ListNode<K, V>
lastundefined | ListNode<K, V>
mapMap<K, ListNode<K, V>>
maxSizenumber
get size()number
get(key: K) => undefined | V
set(key: K, value: V) => void

Defined in

profectus/src/lib/lru-cache.ts:4