Skip to main content

ClientCache

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

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

Indicates whether the caching service is running.

Returns

any

Methods

cleanup()

cleanup(): Promise<void>

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

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

Clears cache content.

Parameters

ParameterType
metaId?string

Returns

Promise<void>


getRecordCount()

getRecordCount(): Promise<number>

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

Returns the number of

Returns

Promise<number>


start()

start(): Promise<void>

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

Starts client function caching service.

Returns

Promise<void>


stop()

stop(): void

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

Stops client function caching service.

Returns

void