MemoryStoreQueueItem

특성

pathstring
dataJSON value
prioritynumber

expiration에 대해 다음 중 하나 선택 가능:

ttlstring
입력 전용
expireTimestring
출력 전용
idstring
출력 전용
기본 URL

https://apis.roblox.com
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
범위
universe.memory-store.queue:write
요청경로 매개 변수
universe_idstring
필수
queue_idstring
필수
요청 본문MemoryStoreQueueItem
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"
}'
응답

{
"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
범위
universe.memory-store.queue:discard
요청경로 매개 변수
universe_idstring
필수
queue_idstring
필수
요청 본문
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
베타

GET /cloud/v2/universes/{universe_id}/memory-store/queues/{queue_id}/items:read
범위
universe.memory-store.queue:dequeue
요청경로 매개 변수
universe_idstring
필수
queue_idstring
필수
쿼리 매개 변수
countnumber
allOrNothingboolean
invisibilityWindowstring
응답
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}'
응답

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