GlobalStore
A GlobalStore object exposes methods and constructors to create subclass Store objects and globally control some internal variables, such as the default value to replace the returned value from Store:Read() if it is nil.
Constructors
:GetStore(key: string)
Even though this is a constructor method, you MUST call it with a colon (:), otherwise the Store will malfunction.
Returns a newly-created Store object associated with the given key.
Methods
:SetDefaultValue(value: any?)
Sets the default value to the given value. The GlobalStore 's Default value will replace all children Stores' returned value when calling Store:Read() if they are found to be nil .
:FetchAllKeys(pageSize: number?, cursor: string?, excDel: boolean?)
Fetch all keys from the DataStore associated with the GlobalStore .
Last updated