Roblox UtilitiesDevlHub Roblox Documentation

Class

MemoryStoreService

Service
Inherits
Instance › Object
Memory category
Instances

Exposes methods to access specific primitives within MemoryStore.

A top-level singleton class which exposes methods to access specific primitives within the MemoryStoreService. Use it for any data that rapidly changes that other servers can restore, such as global leaderboards, matchmaking queues, and auction houses.

For a more in-depth look, see Memory Stores. For the limits and quotas of the service, see Limits and Quotas.

Methods 3#

GetHashMapReturns a MemoryStoreHashMap instance for the provided name.
GetQueueReturns a MemoryStoreQueue instance for the provided name.
GetSortedMapReturns a MemoryStoreSortedMap instance for the provided name.

GetHashMap(name: string): MemoryStoreHashMap#

Returns a MemoryStoreHashMap instance for the provided name. The name is global within the game, so any place that uses the same name accesses the same hash map.

NameTypeDefaultDescription
namestringThe name of the hash map.
Returns

GetQueue(name: string, invisibilityTimeout: int = 30): MemoryStoreQueue#

Returns a MemoryStoreQueue instance for the provided name. The name is global within the game, thus any place that uses the same name accesses the same queue.

NameTypeDefaultDescription
namestringName of the queue.
invisibilityTimeoutint30(Optional) Invisibility timeout, in seconds, for read operations through this queue instance. If not provided, defaults to 30 seconds.
Returns

GetSortedMap(name: string): MemoryStoreSortedMap#

Returns a MemoryStoreSortedMap instance for the provided name. The name is global within the game, so any place that uses the same name accesses the same sorted map.

NameTypeDefaultDescription
namestringName of the sorted map.
Returns

Inherited members#

Inherited from Instance 58
Inherited from Object 6
Properties (2)

ClassName, className

Events (1)

Changed