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

x/velo/src/cache/capabilities/loading_capability.ts>LoadingCache

A high-performance caching library for Deno. Supports LRU, LFU, ARC, and TinyLFU.
Latest
interface LoadingCache
implements Omit<Cache<K, V>, "get">
import { type LoadingCache } from "https://deno.land/x/velo@1.0.0/src/cache/capabilities/loading_capability.ts";

Methods

get(key: K): V

Returns the value of an entry with given key. If the key is not cached, the loader function is used to generate and automatically insert a new value.

refresh(key: K): void

Explicitly call the loader function to re-generate and set a new value for key