Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/blocks/deps.ts>weakcache.WeakLRUCache

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Go to Latest
class weakcache.WeakLRUCache
extends Map
import { weakcache } from "https://deno.land/x/blocks@0.36.7/deps.ts";
const { WeakLRUCache } = weakcache;

Constructors

new
WeakLRUCache(options)

Methods

delete(key)
get(key, mode)
insert(
key,
entry,
expirationPriority,
)
onRemove(entry)
set(
key,
entry,
expirationPriority,
)
setValue(
key,
value,
expirationPriority,
)
used(entry, expirationPriority)