Skip to content

CacheAPI

Defined in: namespaces.ts:1297

get(key): Promise<unknown>

Defined in: namespaces.ts:1299

Returns the cached value, or null if missing/expired.

string

Promise<unknown>


set(key, value, options?): Promise<true>

Defined in: namespaces.ts:1301

Stores a JSON-serializable value.

string

unknown

CacheSetOptions

Promise<true>


remove(key): Promise<true>

Defined in: namespaces.ts:1303

Removes a single entry.

string

Promise<true>


clear(): Promise<true>

Defined in: namespaces.ts:1305

Clears all entries for the calling plugin.

Promise<true>


has(key): Promise<boolean>

Defined in: namespaces.ts:1307

Checks if a non-expired entry exists.

string

Promise<boolean>


keys(): Promise<string[]>

Defined in: namespaces.ts:1309

Returns all non-expired keys for the calling plugin.

Promise<string[]>