Key-value Data Store
Data in a key-value data store is stored and retrieved using a key that uniquely identifies the record.
API
The data storage API is available in WebApps, RESTApps, Widgets and MCP Servers.
API variants [@since 5.2]
The data storage API is available in two variants. One is callback-based whereas the other is callback-free. Please note that both variants execute synchronously, which probably makes the callback-free approach easier to work with.
put(key, data) [@since 5.2]
Stores data associated with a key.
Returns current data stored on the key.
Argument | Description |
|---|---|
| A key to uniquely identify the record |
| JSON data to store |
If a property is set to null, the property will be removed
get(key) [@since 5.2]
Returns data associated with a key.
Argument | Description |
|---|---|
| A key to retrieve data from |
remove(key) [@since 5.2]
Removes data associated with a key.
Returns the removed data.
Argument | Description |
|---|---|
| A key to identify data to remove |