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

Check whether a key exists and has not expired.

Parameters

key: string

Return Type

Promise<boolean>

Usage

import { type CacheAdapter } from ".";