DataStoreGetOptions
Specifies additional parameters for a GlobalDataStore:GetAsync() call.
This class is not replicated. Its interface does not cross the network boundary.
| Memory category | Instances |
|---|
Member index 1
Description
An object that specifies additional parameters for a GlobalDataStore:GetAsync() call.
See also:
- Data Stores, an in-depth guide on data structure, management, error handling, etc.
History 4
Members 1
UseCache
| Type | Default | |
|---|---|---|
| bool | true | |
This property controls whether GlobalDataStore:GetAsync() may
return a locally cached value instead of fetching from the data store
backend. It defaults to true.
When true, if a cached value for the key exists and has not expired,
GlobalDataStore:GetAsync() returns that cached value immediately
without a backend request. When false, the cache is bypassed and the
call always retrieves the latest value from the data store backend.
| Thread safety | ReadSafe |
|---|---|
| Category | Data |
| Loaded/Saved | true |