ParaOrderedDataStore

Description

This type of objects provides unified APIs for accessing persistent data. Only numeric data can be stored, and neither metadata nor data of historical versions are supported.

Methods

Method NameDescription
GetDataGets data. If the key exists, ParaOrderedDataInfo is also returned.
SetDataSets data. If the operation is successful, ParaOrderedDataInfo is also returned.
IncrementDataIncrements the value corresponding to a key and returns the new value.
UpdateDataUpdates the data corresponding to a key through a callback function. The callback function gets the current value and returns the new value based on the defined logic. The callback function cannot be paused once executed.
RemoveDataDeletes the data corresponding to a key.
GetSortedDataPulls data in order.