setTectonCacheObject

Updated:

Provides the ability to cache objects in the platform application's session cache.

Description

setTectonCacheObject provides the ability to cache objects in the platform from an extension module's frontend. Data is retrieved from the cache using getTectonCacheObject. Cache is automatically cleared upon logout, session timeout, or the window/browser tab closing.

Signature

tecton.sources.setTectonCacheObject(key: string, data: object): Promise<void>;

Usage

Caching an object in the platform cache.

await tecton.sources.setTectonCacheObject('MyCacheKey', {
    'account': 0000,
    'amount': 1234,
    'type': 'checking'
});

Parameters

key
data

Release Notes

Tecton
1.5.0

Platform Support

UUX