Skip to main content
Module

x/lru/mod.ts>default#set

Simple and powerful LRU cache for Deno
Latest
method default.prototype.set
import { default } from "https://deno.land/x/lru@1.0.2/mod.ts";

Adds or updates an entry in the cache

Parameters

key: string

new entry key

value: T

new entry value