Skip to content

datasource.cacheGet ​

Returns a value from the server-wide in-memory cache.

js
datasource.cacheGet(key)

Parameters ​

ParameterTypeDescription
keystringThe key.

Returns ​

string | null

The stored value, or null when the key isn't in the cache or has expired.

Examples ​

js
const token = datasource.cacheGet("apiToken");