Properties
Protected
capacity
capacity: number
Protected
head
head: undefined | LruNode<V> = undefined Protected
Readonly
limit
limit: number = 1000
Protected
map
map: Record<string, LruNode<V>> = ... Protected
tail
tail: undefined | LruNode<V> = undefined Accessors
size
- get size(): number
Returns number
Methods
clear
- clear(): void
Returns void
del
- del(key): boolean
Returns boolean
get
- get(key): undefined | V
Returns undefined | V
has
- has(key): boolean
Returns boolean
keys
- keys(): string[]
Returns string[]
peek
- peek(key): undefined | V
Returns undefined | V
Protected
pop
- pop(node): void
Returns void
Protected
push
- push(node): void
Returns void
set
- set(key, value): void
Returns void