method CacheService.prototype.has
CacheService.prototype.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 { CacheService } from "cache-plugin/src/index.ts";