method TtlCache.prototype.delete
TtlCache.prototype.delete(
key: string,
value?: V
): void

Removes key, or only when value is still what it holds, so a late failure can't remove the entry that replaced its own.

Parameters

key: string
optional
value: V

Return Type

void

Usage

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