ParaDataService.GetOrderedDataStore

Declaration

ok, store = GetOrderedDataStore(string name, string scope = “global”)

Parameters

Parameter NameDescription
nameName of a datastore, which is a unique identifier. Data in datastores with the same name is saved in the same data space.
scopeRegion where the datastore is located. Data is stored independently by scope in the datastore. All data keys in the datastore are prefixed with scope by default.

Return Values

IndexTypeDescription
1intIf the value is 0, the operation is successful. The subsequent field is the obtained ParaOrderedDataStore.
2string or ParaOrderedDataStoreIf the operation is successful, the obtained ParaOrderedDataStore is returned. Otherwise, an error message is returned.

Description

Gets a sortable datastore object.

Data is stored in a key-value format, and the value can only be a number.