gaussdbfornosql__ShowRedisBigKeys
Queries large Redis keys by type and pagination to identify strings over the configured size threshold or hash/list/zset/set/stream keys exceeding the element threshold.
Instructions
[GAUSSDBFORNOSQL] 支持查询Redis实例的大key。value长度大于bigkeys-string-threshold参数的string类型的key或者元素数大于bigkeys-composite-threshold参数的hash/list/zset/set/stream类型key,会被判断为大key。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"instance_id": "<instance_id>",
"project_id": "<project_id>"
},
"name": "gaussdbfornosql__ShowRedisBigKeys"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | 查询个数上限值。 取值范围:1~100。不传该参数时,默认查询前100条大key。 | |
| offset | No | 索引位置偏移量,表示从查询到的大key列表偏移offset条数据后查询对应的大key信息。 取值大于或等于0。不传该参数时,查询偏移量默认为0,表示从第一条大key开始查询。 | |
| key_types | No | 大key的类型,一个字符串列表,支持"string","hash","zset","set","list","stream"六种类型。 | |
| project_id | Yes | 租户在某一region下的project ID。 | |
| instance_id | Yes | 实例ID。 |