键树
GET
/redis/keys/tree/{pattern}
请求参数
Path 参数
pattern
string
必需
示例值:
Redis*
Header 参数
Authorization
string
可选
示例值:
Bearer {{pc_token}}
Accept-Language
string
可选
默认值:
en-US
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://k28hrq.natappfree.cc/arbitrage/redis/keys/tree/Redis*' \
--header 'Authorization: Bearer {{pc_token}}' \
--header 'Authorization;' \
--header 'Accept-Language: en-US'
返回响应
🟢200成功
application/json
Body
data
array[object (redis树信息) {4}]
必 需
key
string
键
title
string
标题
count
integer
数量
children
array[object (redis树信息) {4}] | null
子列表
error
null
必需
示例
{
"data": [
{
"key": "Redis:",
"title": "Redis",
"count": 6,
"children": [
{
"key": "Redis:Test:",
"title": "Test",
"count": 3,
"children": [
{
"key": "Redis:Test:ZSet",
"title": "ZSet",
"count": 1,
"children": null
},
{
"key": "Redis:Test:Hash",
"title": "Hash",
"count": 1,
"children": null
},
{
"key": "Redis:Test:Set",
"title": "Set",
"count": 1,
"children": null
}
]
},
{
"key": "Redis:Log:",
"title": "Log",
"count": 3,
"children": [
{
"key": "Redis:Log:1740249925205061632",
"title": "1740249925205061632",
"count": 1,
"children": null
},
{
"key": "Redis:Log:1740249961435459584",
"title": "1740249961435459584",
"count": 1,
"children": null
},
{
"key": "Redis:Log:1740250346724225024",
"title": "1740250346724225024",
"count": 1,
"children": null
}
]
}
]
}
],
"error": null
}
修改于 2024-11-10 12:15:35