OrderedDataStore
A GlobalDataStore that also allows for ordered data store entries.
Memory category | Instances |
---|
Member index 1
Description
A OrderedDataStore is essentially a GlobalDataStore with the exception that stored values must be positive integers. It exposes a method GetSortedAsync() which allows inspection of the entries in sorted order using a DataStorePages object.
Ordered data stores do not support versioning and metadata, so
DataStoreKeyInfo is always nil
for keys in an
OrderedDataStore. If you need versioning and metadata support, use a
DataStore.
Ordered data stores do not support the optional userIds
parameter for
SetAsync() or
IncrementAsync().
See Data Stores for an overview on using ordered data stores.
History 3
- 462 Change ThreadSafety of GetSortedAsync from to Unsafe
- 138 Add GetSortedAsync
- 138 Add OrderedDataStore
Members 1
GetSortedAsync
Parameters (4) | ||
---|---|---|
ascending | bool | |
pagesize | int | |
minValue | Variant | |
maxValue | Variant | |
Returns (1) | ||
Instance |
Returns a DataStorePages object. The sort order is determined by ascending, the length of each page by pageSize, and minValue/maxValue are optional parameters which filter the results.
See Data Stores for request limits and descriptions of the error codes.
Thread safety | Unsafe |
---|
History 2
- 462 Change ThreadSafety of GetSortedAsync from to Unsafe
- 138 Add GetSortedAsync