Skip to main content
Deno 2 is finally here 🎉️
Learn more
class LRUCache
import { LRUCache } from "https://deno.land/x/sail_lru_cache@v7.10.3/index.js";

Constructors

new
LRUCache(options?)

Properties

readonly
del
readonly
length
readonly
prune
readonly
reset

Methods

addItemSize(
index,
v,
k,
size,
)
backgroundFetch(
k,
index,
options,
)
connect(p, n)
dispose(
v,
k,
reason,
)
evict(free)
fetch(k, unnamed 1?)
find(fn, getOptions?)
forEach(fn, thisp?)
get(k, unnamed 1?)
has(k, unnamed 1?)
indexes(unnamed 0?)
isStale(index)
load(arr)
moveToTail(index)
peek(k, unnamed 1?)
pop()
requireSize(
k,
v,
size,
sizeCalculation,
)
rforEach(fn, thisp?)
rindexes(unnamed 0?)
set(
k,
v,
unnamed 2?,
)
setItemTTL(index, ttl)

Static Properties

readonly
AbortController
readonly
AbortSignal