zrangebyscore
Retrieve members from a Redis sorted set whose scores fall within a specified range, optionally including their scores, to efficiently filter and manage ordered data.
Instructions
Return members from a sorted set with scores between min and max
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Sorted set key | |
| max | Yes | Maximum score | |
| min | Yes | Minimum score | |
| withScores | No | Include scores in output |
Input Schema (JSON Schema)
{
"properties": {
"key": {
"description": "Sorted set key",
"type": "string"
},
"max": {
"description": "Maximum score",
"type": "number"
},
"min": {
"description": "Minimum score",
"type": "number"
},
"withScores": {
"default": false,
"description": "Include scores in output",
"type": "boolean"
}
},
"required": [
"key",
"min",
"max"
],
"type": "object"
}