We’re excited to launch the Open Cloud Memory Stores API in beta! This API lets you easily use existing Memory Stores endpoints outside of the Roblox environment.
With this update, you can now access the existing Queue and SortedMap endpoints with third party applications. We’re also introducing two new endpoints called Flush and GetFlush which can help manage your data structures.
This allows for more flexibility in your Memory Stores usage and unlocks the potential to do the following:
Flush stale Memory Stores data during updates
Create an interface to view your Queue or Sorted Maps data
Query player Memory Stores data when troubleshooting issues
…And so much more!
To use these new endpoints, you must create an API key on Creator Hub under the Open Cloud → API Keys tab with the following scopes:
memoryStores:queue:createQueueItem
memoryStores:queue:readQueueItem
memoryStores:queue:discardQueueItem
memoryStores:sortedMap:read
memoryStores:sortedMap:write
memoryStores:control:flushAllDataStructures
memoryStores:control:readFlushStatus
What’s Next?
We plan to release Memory Stores for OAuth2 and Hash Map on Open Cloud in the coming months. We will also incorporate your feedback for the general release, so please share any thoughts below!
Great to see the development toolkit being enhanced even more.
It’s also really nice to see the improvements for flexibility outside the Roblox environment
The potential for these new features is immense, and I can already think of numerous applications for better game management and player experience enhancements.
Looking forward to the upcoming OAuth2 and Hash Map support, which will further expand our capabilities.
Can’t wait to see what everyone builds with these new tools.
type Item = { isReal: boolean }; // The type for the sorted map item data.
const { data } = await MemoryStoresApi.sortedMapItem<Item>({
universeId: 5243626809,
sortedMap: "MySortedMap",
itemId: "Testing123",
});
creating a sorted map item:
type Item = { isReal: boolean }; // The type for the sorted map item data.
const { data } = await MemoryStoresApi.createSortedMapItem<Item>({
universeId: 5243626809,
sortedMap: "MySortedMap",
item: { id: "Testing123", value: { isReal: true }, ttl: "300s", numericSortKey: 1 },
});
The main use case is allowing Creators to access their Memory Stores data outside of a game server. For example, if you had a leaderboard in Memory Stores and wanted to publish the list to a website. Another use case would be if you need to do Customer Support and edit/add/delete data in Memory Stores outside your experience.
Sorry about that! Because these APIs are still in beta if you run into issues please don’t hesitate to reach out, we can see if its something our side before you spend too much time debugging