ICache.get() method

Returns the value stored in the cache under the given key.

Signature:

get(key: string): Promise<any>;

Parameters

Parameter

Type

Description

key

string

key to read the value for

Returns:

Promise<any>

the deserialized stored value, or undefined when the key is absent or expired

Remarks

A stored null is returned as null and is therefore distinguishable from a miss; a stored undefined is not. Callers that must tell "cached as empty" from "not cached" should store an explicit sentinel rather than undefined.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.