Skip to main content

ClientCache

Defined in: js-api/src/functions.ts:210

Client caching service that caches results of function invocations and stores them in the IndexedDb.

Constructors​

Constructor​

new ClientCache(): ClientCache

Returns​

ClientCache

Accessors​

isRunning​

Get Signature​

get isRunning(): any

Defined in: js-api/src/functions.ts:228

Indicates whether the caching service is running.

Returns​

any

Methods​

cleanup()​

cleanup(): Promise<void>

Defined in: js-api/src/functions.ts:222

Removes expired records. Normally, Datagrok does it automatically when needed.

Returns​

Promise<void>


clear()​

clear(metaId?): Promise<void>

Defined in: js-api/src/functions.ts:213

Clears cache content.

Parameters​

ParameterType
metaId?string

Returns​

Promise<void>


getRecordCount()​

getRecordCount(): Promise<number>

Defined in: js-api/src/functions.ts:225

Returns the number of cached records.

Returns​

Promise<number>


start()​

start(): Promise<void>

Defined in: js-api/src/functions.ts:216

Starts client function caching service.

Returns​

Promise<void>


stop()​

stop(): void

Defined in: js-api/src/functions.ts:219

Stops client function caching service.

Returns​

void