method CacheAdapter.get
CacheAdapter.get(key: string): Promise<unknown | null>

Retrieve a value by key. Returns null if the key does not exist or has expired.

Parameters

key: string

Return Type

Promise<unknown | null>

Usage

import { type CacheAdapter } from ".";