MemoryStoreQueueItem
Attributi
Uno dei seguenti per expiration:
URL di base
https://apis.roblox.com
Risorsa MemoryStoreQueueItem
{
"path": "universes/123/memory-store/queues/some-memory-store-queue-id/items/some-memory-store-queue-item-id",
"data": "JSON value",
"priority": "number",
"ttl": "3s",
"id": "string"
}
MemoryStoreQueueItem
Create Memory Store Queue Item
POST /cloud/v2/universes/{universe_id}/memory-store/queues/{queue_id}/items
Campiuniverse.memory-store.queue:write
RichiestaParametri percorsoRispostaMemoryStoreQueueItem
POST /cloud/v2/universes/{universe_id}/memory-store/queues/{queue_id}/items
curl -L -X POST 'https://apis.roblox.com/cloud/v2/universes/{universe_id}/memory-store/queues/{queue_id}/items' \
-H 'x-api-key: {your-api-key}' \
-H 'Content-Type: application/json' \
--data '{
"data": "JSON value",
"priority": "number",
"ttl": "3s"
}'
Risposta
{
"path": "universes/123/memory-store/queues/some-memory-store-queue-id/items/some-memory-store-queue-item-id",
"data": "JSON value",
"priority": "number",
"id": "string"
}
MemoryStoreQueueItem
Discard Memory Store Queue Items
POST /cloud/v2/universes/{universe_id}/memory-store/queues/{queue_id}/items:discard
Campiuniverse.memory-store.queue:discard
RichiestaParametri percorsoPOST /cloud/v2/universes/{universe_id}/memory-store/queues/{queue_id}/items:discard
curl -L -X POST 'https://apis.roblox.com/cloud/v2/universes/{universe_id}/memory-store/queues/{queue_id}/items:discard' \
-H 'x-api-key: {your-api-key}' \
-H 'Content-Type: application/json' \
--data '{
"readId": "string"
}'
MemoryStoreQueueItem
Read Memory Store Queue Items
GET /cloud/v2/universes/{universe_id}/memory-store/queues/{queue_id}/items:read
Campiuniverse.memory-store.queue:dequeue
RichiestaParametri percorsoRispostareadIdstring itemsarray<MemoryStoreQueueItem>
GET /cloud/v2/universes/{universe_id}/memory-store/queues/{queue_id}/items:read
curl -L -X GET 'https://apis.roblox.com/cloud/v2/universes/{universe_id}/memory-store/queues/{queue_id}/items:read?count={integer}&allOrNothing={boolean}&invisibilityWindow={string}' \
-H 'x-api-key: {your-api-key}'
Risposta
{
"readId": "string",
"items": [
{
"path": "universes/123/memory-store/queues/some-memory-store-queue-id/items/some-memory-store-queue-item-id",
"data": "JSON value",
"priority": "number",
"id": "string"
}
]
}