Skip to main content

Class: ClientCache

dg.ClientCache

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

Constructors

constructor

new ClientCache()

Accessors

isRunning

get isRunning(): any

Indicates whether the caching service is running.

Returns

any

Defined in

src/functions.ts:200

Methods

cleanup

cleanup(): Promise<void>

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

Returns

Promise<void>

Defined in

src/functions.ts:194


clear

clear(metaId?): Promise<void>

Clears cache content.

Parameters

NameType
metaId?string

Returns

Promise<void>

Defined in

src/functions.ts:185


getRecordCount

getRecordCount(): Promise<number>

Returns the number of

Returns

Promise<number>

Defined in

src/functions.ts:197


start

start(): Promise<void>

Starts client function caching service.

Returns

Promise<void>

Defined in

src/functions.ts:188


stop

stop(): void

Stops client function caching service.

Returns

void

Defined in

src/functions.ts:191