UserDataStorage

Storage that can manage user data. The Maker and release environment do not share the storage.

# Properties

[{"index":"string UserId (ReadOnly)","0":"The user's Id."}]

# Methods

[{"index":"int32, List BatchDeleteAndWait(List keys) (ServerOnly) (Yield)","0":"Deletes data pertaining to the keys entered. Returns the error code and keys that were successfully deleted. Script executions are suspended during the operation."}]

[{"index":"void BatchDeleteAsync(List keys, func> callbackFunction) (ServerOnly)","0":"Deletes data with the entered keys. This operation is performed asynchronously, and the function passed to the callbackFunction is called with the deletion, error code succeeded keys when completing the operation."}]

[{"index":"int32, DataStorageItemPages BatchGetAndWait(List keys) (ServerOnly) (Yield)","0":"Queries data corresponding to the keys entered. You can see the query result with the error code and the inquiry entity. Script executions are suspended during the operation."}]

[{"index":"void BatchGetAsync(List keys, func, DataStorageItemPages> callbackFunction) (ServerOnly)","0":"Queries data corresponding to the keys entered. This operation is performed asynchronously, and the function passed to the callbackFunction is called with the error code, key, and inquiry entity when the operation is complete."}]

[{"index":"int32, DataStorageItemPages BatchGetByInfoAndWait(List keyInfos) (ServerOnly) (Yield)","0":"Queries data with the DataStorageKeyInfo entered. You can see the query result with the error code and the inquiry entity. Script executions are suspended during the operation."}]

[{"index":"void BatchGetByInfoAsync(List keyInfos, func, DataStorageItemPages> callbackFunction) (ServerOnly)","0":"Queries data with the DataStorageKeyInfo entered. This operation is performed asynchronously, and the function passed to the callbackFunction is called with the error code, key, and inquiry entity for inquiry when the operation is complete."}]

[{"index":"int32, List BatchSetAndWait(Dictionary keyValues) (ServerOnly) (Yield)","0":"Saves data with the keys entered. Returns the keys that succeeded in the error code and storage. Script executions are suspended during the operation."}]

[{"index":"void BatchSetAsync(Dictionary keyValues, func> callbackFunction) (ServerOnly)","0":"Saves data with the entered keys. This operation is performed asynchronously, and the function passed to the callbackFunction is called with the error code and storage succeeded keys when completing the operation."}]

[{"index":"int32, List BatchSetByInfoAndWait(Dictionary keyValues) (ServerOnly) (Yield)","0":"Saves data with the DataStorageKeyInfo entered. Returns the DataStorageKeyInfo that succeeded in the error code and storage. Script executions are suspended during the operation."}]

[{"index":"void BatchSetByInfoAsync(Dictionary keyValues, func> callbackFunction) (ServerOnly)","0":"Saves data with the entered DataStorageKeyInfo. This operation is performed asynchronously, and the function passed to the callbackFunction is called with the error code and storage succeeded DataStorageKeyInfo when completing the operation."}]

[{"index":"int32 DeleteAndWait(string key) (ServerOnly) (Yield)","0":"Deletes data with the entered key and returns the error code. Script executions are suspended during the operation."}]

[{"index":"void DeleteAsync(string key, func callbackFunction) (ServerOnly)","0":"Deletes data with the entered keys. This operation is performed asynchronously, and the function passed to the callbackFunction is called with the error code and key upon completion of the operation."}]

[{"index":"int32, string GetAndWait(string key) (ServerOnly) (Yield)","0":"Queries data corresponding to the keys entered. Returns the error code and the data when the operation is complete. Script executions are suspended during the operation."}]

[{"index":"void GetAsync(string key, func callbackFunction) (ServerOnly)","0":"Queries data corresponding to the keys entered. This operation is performed asynchronously, and the function passed to the callbackFunction is called with the error code, key, and data when the operation is complete."}]

[{"index":"int32, string GetByInfoAndWait(DataStorageKeyInfo keyInfo) (ServerOnly) (Yield)","0":"Queries data with the DataStorageKeyInfo entered. You can set the detailed conditions of data to be loaded with DataStorageKeyInfo. Returns the error code and data when the operation is complete. Script executions are suspended during the operation."}]

[{"index":"void GetByInfoAsync(DataStorageKeyInfo keyInfo, func callbackFunction) (ServerOnly)","0":"Queries data with the DataStorageKeyInfo entered. You can set the detailed conditions of data to be loaded with DataStorageKeyInfo. This operation is performed asynchronously. The function passed to the callbackFunction is called with the error code, DataStorageKeyInfo, and data when the operation is complete."}]

[{"index":"int32, DataStorageItemPages GetPagesAndWait(string tag) (ServerOnly) (Yield)","0":"Queries data that has the tags entered. You can see the inquiry result with the error code and inquiry entity. Script executions are suspended during the operation."}]

[{"index":"void GetPagesAsync(string tag, func callbackFunction) (ServerOnly)","0":"Queries data that has the tags entered. This operation is performed asynchronously, and the function passed to the callbackFunction is called with the error code, tag, and inquiry entity when the operation is complete."}]

[{"index":"int32, DataStorageVersionPages GetVersionsAndWait(string key, SortDirection sortDirection, DateTime minDate, DateTime maxDate) (ServerOnly) (Yield)","0":"Queries the versions of data corresponding to the keys entered. Displays the inquiry results with the error code and inquiry entity. You can use sortDirection to sort in ascending or descending order. You can query the version created within the time zone set with minDate and maxDate. Suspends script executions during performance."}]

[{"index":"void GetVersionsAsync(string key, SortDirection sortDirection, DateTime minDate, DateTime maxDate, func callbackFunction) (ServerOnly)","0":"Queries the versions of data corresponding to the keys entered. You can use sortDirection to sort in ascending or descending order. You can query the version created within the time zone set with minDate and maxDate. This operation is performed asynchronously, and the function passed to the callbackFunction is called with the error code, key, and inquiry entity when the operation is complete."}]

[{"index":"int32 SetAndWait(string key, string value) (ServerOnly) (Yield)","0":"Saves data with the keys entered. Returns the error code when the operation is complete. Script executions are suspended during the operation."}]

[{"index":"void SetAsync(string key, string value, func callbackFunction) (ServerOnly)","0":"Saves data with the keys entered. This operation is performed asynchronously, and the function passed to the callbackFunction is called with the error code and key when the operation is complete."}]

[{"index":"int32 SetByInfoAndWait(DataStorageKeyInfo keyInfo, string value) (ServerOnly) (Yield)","0":"Saves data with the DataStorageKeyInfo entered. You can set the detailed information with DataStorageKeyInfo. Returns the error code when the operation is complete. Script executions are suspended during the operation."}]

[{"index":"void SetByInfoAsync(DataStorageKeyInfo keyInfo, string value, func callbackFunction) (ServerOnly)","0":"Saves data with the DataStorageKeyInfo entered. You can set the detailed information with DataStorageKeyInfo. This operation is performed asynchronously, and the function passed to the callbackFunction is called with the error code and DataStorageKeyInfo when the operation is complete."}]

[{"index":"int32, List TransactDeleteAndWait(List keys) (ServerOnly) (Yield)","0":"Deletes data corresponding to the keys entered. Returns the keys that have been deleted along with the error code if all tasks within the call are successful. Script executions are suspended during operation. Function will not be called if any of the tasks fail. You can manipulate up to 20 keys at a time."}]

[{"index":"void TransactDeleteAsync(List keys, func> callbackFunction) (ServerOnly)","0":"Deletes data corresponding to the keys entered. This call is performed asynchronously. The function passed to the callbackFunction is called with the deleted keys and error code if all tasks within the call are successful. Function will not be called if any of the tasks fail. You can manipulate up to 20 keys at a time."}]

[{"index":"int32, List TransactSetAndWait(Dictionary keyValues) (ServerOnly) (Yield)","0":"Saves data corresponding to the keys entered. Returns the keys that have been saved along with the error code if all tasks within the call are successful. Script executions are suspended during operation. Function will not be called if any of the tasks fail. You can manipulate up to 20 keys at a time."}]

[{"index":"void TransactSetAsync(Dictionary keyValues, func> callbackFunction) (ServerOnly)","0":"Saves data corresponding to the keys entered. This call is performed asynchronously. The function passed to the callbackFunction is called with the saved keys and error code if all tasks within the call are successful. Function will not be called if any of the tasks fail. You can manipulate up to 20 keys at a time."}]

[{"index":"int32, List TransactSetByInfoAndWait(Dictionary keyValues) (ServerOnly) (Yield)","0":"Saves data with the entered DataStorageKeyInfo. Returns the DataStorageKeyInfo that succeeded and the error code if all data has been saved. Script executions are suspended during operation. Function will not be called if any of the tasks fail. You can manipulate up to 20 keys at a time."}]

[{"index":"void TransactSetByInfoAsync(Dictionary keyValues, func> callbackFunction) (ServerOnly)","0":"Saves data with the DataStorageKeyInfo entered. This call is performed asynchronously. The function passed to the callbackFunction is called with the error code and the saved DataStorageKeyInfo if all tasks within the call are successful. Function will not be called if any of the tasks fail. You can manipulate up to 20 keys at a time."}]

[{"index":"int32, string UpdateAndWait(string key, string expectedValue, string newValue) (ServerOnly) (Yield)","0":"Updates the corresponding key value to newValue. When the operation succeeds, it returns the error code and the updated value. If the previous value and expectedValue are different, it returns the error code UpdateApiFailed(2000000) and the previous value. Suspends script executions during performance."}]

[{"index":"void UpdateAsync(string key, string expectedValue, string newValue, func callbackFunction) (ServerOnly)","0":"Updates the corresponding key value to newValue. This operation is performed asynchronously. The function passed to the callbackFunction is called with the error code, key, and updated value when completing the operation. If the previous value and expectedValue are different, it delivers the error code UpdateApiFailed(2000000), key, and the previous value."}]

[{"index":"int32, string UpdateByInfoAndWait(DataStorageKeyInfo keyInfo, string expectedValue, string newValue) (ServerOnly) (Yield)","0":"Updates the DataStorageKeyInfo value to newValue. When the operation succeeds, it returns the error code and the updated value. If the previous value and expectedValue are different, the error code UpdateApiFailed(2000000) and the previous value are returned. Suspends script executions during performance."}]

[{"index":"void UpdateByInfoAsync(DataStorageKeyInfo keyInfo, string expectedValue, string newValue, func callbackFunction) (ServerOnly)","0":"Updates the DataStorageKeyInfo value to newValue. This operation is performed asynchronously. The function passed to the callbackFunction is called with the error code, DataStorageKeyInfo, and updated value when completing the operation. If the previous value and expectedValue are different, it delivers the error code UpdateApiFailed(2000000), DataStorageKeyInfo, and the previous value."}]