MemoryStoreQueueItem

属性

pathstring
dataJSON value
prioritynumber

请为expiration选择其中一项:

ttlstring
仅输入
expireTimestring
仅输出
idstring
仅输出
基本网址

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
Beta

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
Beta

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
Beta

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