lrange
Retrieve elements from a Redis list within a specified range. Input the list name, start, and stop indices to return a JSON string of the elements or an error message.
Instructions
Get elements from a Redis list within a specific range.
Returns: str: A JSON string containing the list of elements or an error message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| start | Yes | ||
| stop | Yes |
Input Schema (JSON Schema)
{
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"start": {
"title": "Start",
"type": "integer"
},
"stop": {
"title": "Stop",
"type": "integer"
}
},
"required": [
"name",
"start",
"stop"
],
"title": "lrangeArguments",
"type": "object"
}