# MemoryStore Explorer

> Inspect and fix the sorted maps and queues your servers share, through Roblox Open Cloud, with etag-checked edits, safe queue peeking and an audit trail.

The **MemoryStore Explorer** reads and writes your experience's MemoryStore sorted maps and queues through Roblox Open Cloud. MemoryStores hold live state that every server shares, such as matchmaking pools, cross-server queues and short-lived caches, so a bad item can break a game straight away. The Explorer lets you look at that state and fix it without publishing a script.

Open it from **MemoryStore Explorer** in the project sidebar. It has three tabs: **Sorted maps**, **Queues** and **Audit log**.

## What you need

Like the [DataStore Explorer](https://docs.bloxlytics.app/operations/datastores), it works through the Open Cloud key connected to the project, and two things gate every action: the key's scopes and your Bloxlytics permissions.

### Open Cloud scopes

| Capability | Open Cloud scope | Used for |
| --- | --- | --- |
| Read sorted maps | `memory-store.sorted-map:read` | Browsing sorted maps and opening items |
| Edit sorted maps | `memory-store.sorted-map:write` | Saving, creating and deleting items |
| Read queues | `memory-store.queue:dequeue` | Peeking at a queue and **Read and hold** |
| Add to queues | `memory-store.queue:add` | **Add item** |
| Discard queue items | `memory-store.queue:discard` | Removing items you've read |
| Flush MemoryStores | `memory-store:flush` | **Flush…** |

Roblox also lists the flush scope as `universe.memory-store:flush`; either one works. Add scopes to your key and connect it again in **Integrations** (see [Connect Open Cloud](https://docs.bloxlytics.app/projects/open-cloud)).

### Bloxlytics permissions

| Permission | Allows | Default roles |
| --- | --- | --- |
| `memorystore.read` | Browse sorted maps, peek at queues, view the MemoryStore audit log | Owner, Admin, Developer |
| `memorystore.write` | Save, create and delete sorted map items; add, hold and discard queue items (also needs `memorystore.read`) | Owner, Admin, Developer |
| `memorystore.flush` | Flush every sorted map and queue (also needs both of the above) | Owner, Admin |

MemoryStore permissions are separate from DataStore permissions, so you can let someone fix matchmaking without giving them player data. See [Roles and permissions](https://docs.bloxlytics.app/workspaces/roles-and-permissions#memorystores).

## Opening a sorted map or queue

Roblox can't list sorted maps or queues, so type the name under **Open by name** and select **Open**. Select **Save** under the name to keep it in the list for everyone on the project; removing it from the list changes nothing on Roblox. Roblox returns an empty result for a name that doesn't exist, so check the spelling if a map or queue looks empty.

The current selection is kept in the page address, so you can share a link to an item with a teammate who has access.

## Sorted maps

### Browsing items

The items pane lists the map's items in sort order, 50 at a time: items without a sort key first, then numeric sort keys, then text sort keys, each then ordered by id. Switch between **Ascending** and **Descending**. Each row shows the item's sort key and how long it has left before it expires.

The filter button opens four bounds: **Sort key above**, **Sort key below**, **Id after** and **Id before**. All are exclusive. A sort key bound that's a number compares numeric sort keys; anything else compares text.

### Editing an item

Opening an item shows its value as JSON, its sort key, its size and when it expires. You can change:

- **Value**: any JSON, up to 32 KB.
- **Sort key**: **None**, a **Number** or **Text** (up to 128 characters).
- **Time to live**: up to 45 days. Saving restarts the expiry from that moment, so saving with no other changes renews the item.

**Review and save** shows what changed in the value and the sort key, and when the item will expire, with an optional reason for the audit log. **Revert** throws away your edits.

> **This writes to live game state:** Every server sees a saved item immediately. Check what your game expects before changing its shape.

### Conflicts

When you open an item, Bloxlytics keeps its version tag (`etag`). Saving and deleting check it first, and the save sends it to Roblox, which refuses the write if a server changed the item in the meantime. Nothing is overwritten. You can then:

- **Load latest**: discard your edits and show the item as it is now.
- **Keep my edits**: keep your edits and review them again against the newer version before saving.

If the item expired or was removed while you were editing, you're told so instead.

### Creating and deleting

The plus button on the items pane creates an item with an id, value, sort key and time to live. It fails if the id already exists, so live items are never replaced from here. Deleting asks you to type the item's id. MemoryStores keep no history, so a deleted item can't be restored; the audit log keeps its last value.

## Queues

Opening a queue shows the items at the front, its **Changes**, and controls to add, hold and discard items.

### Peeking

**Front of the queue** lists up to 100 items in the order servers would read them: highest priority first, then oldest first. Each shows its data, priority, time left and size. Peeking uses a 0-second invisibility window, so game servers can still take these items. Items that a server or a teammate is currently holding aren't shown. Select **Peek again** to refresh.

### Adding items

**Add item** puts JSON data (up to 32 KB) on the queue with a **Priority** (higher numbers go nearer the front) and a **Time to live** of up to 45 days. Servers reading the queue can pick it up straight away.

### Removing items

To clear a stuck or bad item, use **Read and remove**:

**1. Read and hold**

Choose how many items to take from the front (1 to 100) and how long to hide them (1 to 3,600 seconds), then select **Read and hold**. Those items are hidden from every server for that window.

**2. Check them**

The held items appear at the top with a countdown.

**3. Discard or let them go**

Select **Discard** to remove them for good. Otherwise do nothing: when the countdown ends they return to the queue in their original place. Roblox can't release them early.

Holding hides items from your game, so it needs `memorystore.write`; peeking only needs `memorystore.read`.

## Flushing everything

**Flush…** deletes every sorted map and queue in the experience, for all live servers, immediately. It's meant for recovering from corrupted state, and can't be undone. DataStores aren't affected. To confirm, type the experience's Universe ID. Roblox finishes the flush in the background, which can take a few moments.

## MemoryStore audit log

The **Audit log** tab, and each item's or queue's **Changes** tab, list every change made through Bloxlytics: saves, creations and deletions of sorted map items, items added to queues, reads that held items, discards and flushes. Each row shows who made it, when, and whether it was saved, stopped by a conflict or refused by Roblox. Select an item or queue to open it. Changes also appear in the workspace [audit log](https://docs.bloxlytics.app/workspaces/audit-log).

Changes your game servers make don't appear here.

## Related

- [DataStore Explorer](https://docs.bloxlytics.app/operations/datastores): Standard and ordered DataStores.

- [Roblox APIs Bloxlytics uses](https://docs.bloxlytics.app/roblox-apis): The Open Cloud APIs the Explorer calls and the scopes they need.
