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

x/velo/mod.ts>Velo#ttl

A high-performance caching library for Deno. Supports LRU, LFU, ARC, and TinyLFU.
Latest
method Velo.prototype.ttl
import { Velo } from "https://deno.land/x/velo@1.0.0/mod.ts";

Specifies the time-to-live for cache entries. Takes optional ExpireOptions to specify when to refresh the TTL. By default it is never refreshed.

Parameters

timeout: number
optional
options: ExpireOptions