MemoryStoreService
*此內容很快就會推出您所選的語言版本。
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.
概要
方法
Returns a MemoryStoreHashMap instance for the provided name.
Returns a MemoryStoreQueue instance for the provided name.
Returns a MemoryStoreSortedMap instance for the provided name.
屬性
方法
GetHashMap
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.
參數
The name of the hash map.
返回
A MemoryStoreHashMap instance for the provided name.
GetQueue
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.
參數
Name of the queue.
(Optional) Invisibility timeout, in seconds, for read operations through this queue instance. If not provided, defaults to 30 seconds.
返回
A MemoryStoreQueue instance for the provided name.
GetSortedMap
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.
參數
Name of the sorted map.
返回
A MemoryStoreSortedMap instance for the provided name.