- Home [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
- Getting started
- Use cases
-
API
- Object types
- Data types
-
Global constants
- Application
- ApplicationUserProfile
- ApplicationWithBatcher
- ApplicationWithParams
- BrandingSettings
- CompanyInfo
- Converter
- Directories
- Files
- HttpApiHandler
- HttpApiRequest
- ICache
- IStorage
- MailMessage
- Mailbox
- OrganisationStructure
- OrganisationStructureTree
- Portal
- PortalPageInfo
- PortalSettings
- Portals
- Process
- Processes
- ProductionSchedule
- Reminders
- Replacements
- Serial
- ServerCollection
- Service
- SignupUrlParams
- SystemCollections
- SystemCollectionsWithEvents
- SystemCollectionsWithFilterEvents
- Templater
- Translator
- UserGroups
- Users
- Watermarks
- Report
- Reports
- SR
- Work with apps
- Web requests
- Access permissions
- Document flow
- Live Chats
- “Code” widget
- Signatures
- Business calendars
- Integration with IP telephony
- Integration with email marketing services
Cache to temporary store data on the server
Hierarchy
Methods
getItem
Get a value from the server’s cache.
Parameters
key: string
Returns Promise<string | null>
Value saved in the cache or
null
if nothing is found based on the key.setItem
Save the value to the server's cache.
By default, data is stored in the cache for 30 seconds. To store it longer, set the storage time in the
ttlInMs
parameter. Note that caching data, even for a long period of time, does not guarantee that you will get it when you use the getItem method. To store data securely for a long time, usestorage
(IStorage).await Application.cache.setItem( 'key', JSON.stringify({ 'some_key' : 'some_data', 'arr' : [ 1, 2, 3 ] })); // When data needs to be requested let value = await Application.cache. getItem('key'); if (!value) { // Getting the initial value based on source data value = await longOperation_initDefaultValue(); }
Parameters
key: string
value: string
Optional ttlInMs: undefined | number
Returns Promise<void>
Methods