MemoryStoreSortedMap¶
Provides access to a sorted map within MemoryStoreService.
Not implemented yet
This class exists in the current Roblox API but is not implemented in Nova yet. Scripts that reference it will fail at runtime.
Description¶
Provides access to a sorted map within MemoryStoreService. A sorted map is a collection of items where string keys are associated with arbitrary values (up to the maximum allowed size -- see Memory Stores). Each item can also have an optional sort key, which can be a number or a string. In the ordering of items, the sort key, if provided, takes precedence over the key. Items with numeric sort keys are sorted before items with string sort keys, which are sorted before items with no sort key. Items with the same sort key and items with no sort key are arranged in alphabetical order by key.
Inheritance¶
Object โ Instance โ MemoryStoreSortedMap
Methods¶
| Member | Signature | Summary |
|---|---|---|
GetAsync |
MemoryStoreSortedMap:GetAsync(key: string): Tuple |
Retrieves the value and sort key of a key in the sorted map. |
GetRangeAsync |
MemoryStoreSortedMap:GetRangeAsync(direction: SortDirection, count: int, exclusiveLowerBound: Variant, exclusiveUpperBound: Variant): Array |
Retrieves items within a sorted range of keys and sort keys. |
GetSizeAsync |
MemoryStoreSortedMap:GetSizeAsync(): int |
Gets the size of the sorted map. |
RemoveAsync |
MemoryStoreSortedMap:RemoveAsync(key: string): null |
Removes the provided key from the sorted map. |
SetAsync |
MemoryStoreSortedMap:SetAsync(key: string, value: Variant, expiration: int64, sortKey: Variant): bool |
Sets the value of a key. |
UpdateAsync |
MemoryStoreSortedMap:UpdateAsync(key: string, transformFunction: Function, expiration: int64): Tuple |
Retrieves the value and sort key of a key from a sorted map and updates it with a new value and sort key. |
Roblox reference: MemoryStoreSortedMap
Generated from Nova's API dump and Roblox creator-docs. Nova-only members come from the engine's reflection metadata.