PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

DataStoreService

Show deprecated

DataStoreService

Show deprecated

DataStoreService exposes methods for getting GlobalDataStore and OrderedDataStore objects. Data stores can only be accessed by game servers, so you can only use DataStoreService within a Script or a ModuleScript that is used by a Script.

Using Data Stores in Studio

DataStoreService cannot be used in Studio if a game is not configured to allow access to API services. See the Articles/Data store|Data Stores article for instructions.

Request Limits

There are limits applied to the data store model. Please see Articles/Datastore Errors|Data Store Errors and Limits for details.

Properties

bool

AutomaticRetry

[NotReplicated]

Sets whether data store functions will automatically retry or not.

Functions

Instance

GetDataStore ( string name , string scope )

Get a GlobalDataStore given a name and optional scope

Instance

GetGlobalDataStore ( )

Returns the default data store

Instance

GetOrderedDataStore ( string name , string scope )

Get an OrderedDataStore given a name and optional scope

int

GetRequestBudgetForRequestType ( DataStoreRequestType requestType )

Returns the number of requests that can be made by the given request type.

Events