SortedSet命令组中的zkeys指令。 列出 zset 中的 key 列表。 指令格式为:zkeys name key_start score_start score_end limit 列出 zset 中处于区间 (key_start+score_start, score_end] 的 key-score 列表. 如果 key_start 为空, 那么对应权重值大于或者等于 score_start 的 key 将被返回. 如果 key_start 不为空, 那么对应权重值大于 score_start 的 key, 或者大于 key_start 且对应权重值等于 score_start 的 key 将被返回. 也就是说, 返回的 key 在 (key.score == score_start && key > key_start || key.score > score_start), 并且key.score <= score_end 区间。
| 参数名称 | 类型 | 示例值 | 必须 | 描述 |
|---|---|---|---|---|
| content-type | String | application/x-www-form-urlencoded | 否 |
| 参数名称 | 类型 | 示例值 | 必须 | 描述 |
|---|---|---|---|---|
| name | String | myset | 是 | 集合名称 |
| key_start | String | a | 是 | 字典序的开始。 |
| score_start | Number | 1 | 是 | 权重开始值。 |
| score_end | Number | 100 | 是 | 权重结束值。 |
| limit | Number | 10 | 是 | 限制返回条数。 |
| ds_id | String | - | 是 | 数据源 |
showapi_res_body 系统封装,业务数据均位于该对象内;系统级字段见。