Skip to main content

ClientCache

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

Constructors

new ClientCache()

new ClientCache(): ClientCache

Returns

ClientCache

Accessors

isRunning

get isRunning(): any

Indicates whether the caching service is running.

Returns

any

Source

src/functions.ts:205

Methods

cleanup()

cleanup(): Promise<void>

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

Returns

Promise<void>

Source

src/functions.ts:199


clear()

clear(metaId?): Promise<void>

Clears cache content.

Parameters

ParameterType
metaId?string

Returns

Promise<void>

Source

src/functions.ts:190


getRecordCount()

getRecordCount(): Promise<number>

Returns the number of

Returns

Promise<number>

Source

src/functions.ts:202


start()

start(): Promise<void>

Starts client function caching service.

Returns

Promise<void>

Source

src/functions.ts:193


stop()

stop(): void

Stops client function caching service.

Returns

void

Source

src/functions.ts:196