Skip to content

CacheAPI

Defined in: namespaces.ts:1296

get(key): Promise<unknown>

Defined in: namespaces.ts:1298

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

string

Promise<unknown>


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

Defined in: namespaces.ts:1300

Stores a JSON-serializable value.

string

unknown

CacheSetOptions

Promise<true>


remove(key): Promise<true>

Defined in: namespaces.ts:1302

Removes a single entry.

string

Promise<true>


clear(): Promise<true>

Defined in: namespaces.ts:1304

Clears all entries for the calling plugin.

Promise<true>


has(key): Promise<boolean>

Defined in: namespaces.ts:1306

Checks if a non-expired entry exists.

string

Promise<boolean>


keys(): Promise<string[]>

Defined in: namespaces.ts:1308

Returns all non-expired keys for the calling plugin.

Promise<string[]>