MemoryStoreQueueItem

Atrybuty

pathstring
dataJSON value
prioritynumber

Jedna z następujących dla expiration:

ttlstring
Tylko dane wejściowe
expireTimestring
Tylko dane wyjściowe
idstring
Tylko dane wyjściowe
Podstawowy adres URL

https://apis.roblox.com
Zasób 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
Beta

POST /cloud/v2/universes/{universe_id}/memory-store/queues/{queue_id}/items
Zakresy
universe.memory-store.queue:write
ŻądanieParametry ścieżki
universe_idstring
Wymagane
queue_idstring
Wymagane
Treść żądaniaMemoryStoreQueueItem
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"
}'
Odpowiedź:

{
"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
Beta

POST /cloud/v2/universes/{universe_id}/memory-store/queues/{queue_id}/items:discard
Zakresy
universe.memory-store.queue:discard
ŻądanieParametry ścieżki
universe_idstring
Wymagane
queue_idstring
Wymagane
Treść żądania
readIdstring
POST /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
Beta

GET /cloud/v2/universes/{universe_id}/memory-store/queues/{queue_id}/items:read
Zakresy
universe.memory-store.queue:dequeue
ŻądanieParametry ścieżki
universe_idstring
Wymagane
queue_idstring
Wymagane
Parametry zapytania
countnumber
allOrNothingboolean
invisibilityWindowstring
Odpowiedź:
readIdstring
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}'
Odpowiedź:

{
"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"
}
]
}