Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/velo/mod.ts>RR#set

Performant Cache implementations for Deno. Supports LRU, LFU, ARC and other caching policies.
Go to Latest
method RR.prototype.set
import { RR } from "https://deno.land/x/velo@0.1.5/mod.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