type alias TtlCache

TTL cache returned by ttlCache()

Type Parameters

Properties

get: (key: K) => V | undefined
set: (
key: K,
value: V,
) => void
clear: () => void
size: () => number

Usage

import { type TtlCache } from "docs/utilities.ts";