Skip to main content
Version: 5.7.0

SetSessionCacheObject

Stores a JSON object temporarily within the current session. Note that the data will be lost when the session expires.

Method Parameters

ParameterDescription
keyThe storage-name for the object
cacheObjectThe JSON object to store
tip

Apps are limited to 5 cached objects per session, with each restricted to 512 characters of stringified JSON data.

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab