method TtlCache.prototype.get
TtlCache.prototype.get(key: string): V | undefined

Returns the value under key unless it is missing or expired.

Parameters

key: string

Return Type

V | undefined

Usage

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