Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/live/deps.ts>weakcache.WeakLRUCache

Git-based Visual CMS for Deno, </> htmx and Tailwind apps. Deploy on any Deno-compatible host.
Latest
class weakcache.WeakLRUCache
extends Map
import { weakcache } from "https://deno.land/x/live@1.74.1/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)