method TtlCache.prototype.set
TtlCache.prototype.set(
key: string,
value: V
): V

Stores value under key from now on, and returns it.

Parameters

key: string
value: V

Return Type

Usage

import { TtlCache } from "api/lib/ttl-cache.ts";