zset_range
Retrieve specified range of elements from a Redis sorted set by providing the key, start, and stop indices. Optionally include scores for detailed analysis.
Instructions
获取有序集合范围
Input Schema
Name | Required | Description | Default |
---|---|---|---|
key | Yes | 有序集合键名 | |
start | Yes | 起始索引 | |
stop | Yes | 结束索引 | |
withScores | No | 是否返回分数(可选) |
Input Schema (JSON Schema)
{
"properties": {
"key": {
"description": "有序集合键名",
"type": "string"
},
"start": {
"description": "起始索引",
"type": "number"
},
"stop": {
"description": "结束索引",
"type": "number"
},
"withScores": {
"description": "是否返回分数(可选)",
"type": "boolean"
}
},
"required": [
"key",
"start",
"stop"
],
"type": "object"
}