Skip to main content

ClientCache

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

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:227

Indicates whether the caching service is running.

Returns​

any

Methods​

cleanup()​

cleanup(): Promise<void>

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

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:212

Clears cache content.

Parameters​

ParameterType
metaId?string

Returns​

Promise<void>


getRecordCount()​

getRecordCount(): Promise<number>

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

Returns the number of cached records.

Returns​

Promise<number>


start()​

start(): Promise<void>

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

Starts client function caching service.

Returns​

Promise<void>


stop()​

stop(): void

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

Stops client function caching service.

Returns​

void