method ICacheStore.has
ICacheStore.has(key: string): Promise<boolean>

Reports whether a live entry exists.

Parameters

key: string

Cache key

Return Type

Promise<boolean>

true if present and unexpired

Usage

import { type ICacheStore } from "cache-plugin/src/index.ts";