Skip to content

Commit 304faef

Browse files
author
AbdelrahmanQe
authored
Update GlobalDataStore.yaml (#1069)
Updated to create new versions using SetAsync, but only once every hour, with at least an hour between each version ## Changes <!-- Please summarize your changes. --> Fixed the Misleading Info On The Doc , and updated it according to this Post From Dev_Forum https://devforum.roblox.com/t/upcoming-changes-to-data-stores-versioning/3042258/1 <!-- Please link to any applicable information (forum posts, bug reports, etc.). --> https://devforum.roblox.com/t/upcoming-changes-to-data-stores-versioning/3042258/1 ## Checks By submitting your pull request for review, you agree to the following: - [✔] This contribution was created in whole or in part by me, and I have the right to submit it under the terms of this repository's open source licenses. - [✔ ] I understand and agree that this contribution and a record of it are public, maintained indefinitely, and may be redistributed under the terms of this repository's open source licenses. - [✔ ] To the best of my knowledge, all proposed changes are accurate. ---------
1 parent cde3e57 commit 304faef

File tree

1 file changed

+13
-18
lines changed

1 file changed

+13
-18
lines changed

content/en-us/reference/engine/classes/GlobalDataStore.yaml

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,10 @@ methods:
124124
This function increments the value of a key by the provided amount (both
125125
must be integers).
126126
127-
`Class.OrderedDataStore` does not support versioning, so calling this
128-
method on an `Class.OrderedDataStore` key will overwrite the current value
127+
Values in `Class.GlobalDataStore|GlobalDataStores` are **versioned** as outlined
128+
in [versioning](../../../cloud-services/data-stores/versioning-listing-and-caching.md#versioning).
129+
`Class.OrderedDataStore|OrderedDataStores` do not support versioning, so calling this
130+
method on an ordered data store key will overwrite the current value
129131
with the incremented value and make previous versions inaccessible.
130132
code_samples:
131133
parameters:
@@ -221,14 +223,10 @@ methods:
221223
This function sets the latest value, `Class.Player.UserId|UserIds`, and
222224
metadata for the given key.
223225
224-
Values in data stores are versioned, meaning
225-
`Class.GlobalDataStore:SetAsync()` will create a new version every time it
226-
is called. Prior versions can be accessed through
227-
`Class.DataStore:ListVersionsAsync()`/`Class.DataStore:GetVersionAsync()`
228-
for up to 30 days at which point they are permanently deleted.
229-
230-
`Class.OrderedDataStore` does not support versioning, so calling this
231-
method on an `Class.OrderedDataStore` key will overwrite the current value
226+
Values in `Class.GlobalDataStore|GlobalDataStores` are **versioned** as outlined
227+
in [versioning](../../../cloud-services/data-stores/versioning-listing-and-caching.md#versioning).
228+
`Class.OrderedDataStore|OrderedDataStores` do not support versioning, so calling this
229+
method on an ordered data store key will overwrite the current value
232230
and make previous versions inaccessible.
233231
234232
Metadata definitions must always be updated with a value, even if there
@@ -302,14 +300,11 @@ methods:
302300
specified through the second parameter. If the callback returns `nil`, the
303301
write operation is cancelled and the value remains unchanged.
304302
305-
If the update succeeds, a new version of the value will be created and
306-
prior versions will remain accessible through
307-
`Class.DataStore:ListVersionsAsync()` and
308-
`Class.DataStore:GetVersionAsync()`.
309-
310-
`Class.OrderedDataStore` does not support versioning, so calling this
311-
function on an `Class.OrderedDataStore` key will overwrite the current
312-
value and make previous versions inaccessible.
303+
Values in `Class.GlobalDataStore|GlobalDataStores` are **versioned** as outlined
304+
in [versioning](../../../cloud-services/data-stores/versioning-listing-and-caching.md#versioning).
305+
`Class.OrderedDataStore|OrderedDataStores` do not support versioning, so calling this
306+
method on an ordered data store key will overwrite the current value
307+
and make previous versions inaccessible.
313308
314309
In cases where another game server updated the key in the short timespan
315310
between retrieving the key's current value and setting the key's value,

0 commit comments

Comments
 (0)