Atomically increments the value of a given key. If the key does not exist, it is created and set. An error is thrown if the corresponding value is not a number.
Modifying a value this way does not trigger a data lock.
Zh
需要递增的键。
En
The key to increment.
Zh
递增量,默认为 1。
En
The amount to increment by, defaults to 1.
Zh
返回一个 Promise,解析为累加后的数值。
En
Returns a Promise that resolves to the incremented numerical value.
Zh
游戏数据存储类,用于对特定存储空间内的数据进行操作。
En
Game data storage class, used for operating on data within a specific storage space.
Zh
存储数据的类型。
En
The type of data being stored.