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)

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