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

Read a value. The key is already-prefixed by CacheService.

Type Parameters

Expected value type

Parameters

key: string

Already-prefixed cache key

Return Type

Promise<T | null>

The deserialized value, or null when absent/expired

Usage

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