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
Methods
cleanup
▸ cleanup(): Promise
<void
>
Removes expired records. Normally, Datagrok does it automatically when needed.
Returns
Promise
<void
>
Defined in
clear
▸ clear(metaId?
): Promise
<void
>
Clears cache content.
Parameters
Name | Type |
---|---|
metaId? | string |
Returns
Promise
<void
>
Defined in
getRecordCount
▸ getRecordCount(): Promise
<number
>
Returns the number of
Returns
Promise
<number
>
Defined in
start
▸ start(): Promise
<void
>
Starts client function caching service.
Returns
Promise
<void
>
Defined in
stop
▸ stop(): void
Stops client function caching service.
Returns
void