method CacheService.prototype.get
CacheService.prototype.get<T>(key: string): Promise<T | null>

Reads a cached value.

Type Parameters

The expected value type

Parameters

key: string

Cache key

Return Type

Promise<T | null>

The value, or null when absent or expired

Usage

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