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

x/velo/src/caches/slru.ts>SLRU#set

Performant Cache implementations for Deno. Supports LRU, LFU, ARC and other caching policies.
Go to Latest
method SLRU.prototype.set
import { SLRU } from "https://deno.land/x/velo@0.1.5/src/caches/slru.ts";

Inserts a new entry into the cache

Parameters

key: Key

The entries key

value: V

The entries value

optional
ttl: number

The max time to live in ms