GlobalDataStore
GlobalDataStore : Instance
Properties
Methods
GetAsync
Retrieves the latest value of a specified key along with metadata, such as version information.
Parameters
string
InKey
DataStoreGetOptions
InOptions
Return
Tuple
Code Samples
IncrementAsync
Increments the numeric value of a key by a specified amount.
Parameters
string
InKey
number
InDelta
array
InUserIds
DataStoreIncrementOptions
InOptions
Return
Value
Code Samples
RemoveAsync
Deletes a key from the data store while retaining an accessible version history.
Parameters
string
InKey
Return
Tuple
Code Samples
SetAsync
Sets or updates the value for a given key, creating a new version each time it is called.
Parameters
string
InKey
Value
InValue
Value
InUserIds
DataStoreSetOptions
InOptions
Return
Value
Code Samples
UpdateAsync
Safely updates a key's value by reading its current state before applying changes, useful for handling concurrent modifications.
Parameters
string
InKey
Value
InTransformFunction
Return
Tuple
Code Samples
Events
Last updated