zrange
Retrieve specific members from a Redis sorted set by defining a range and optionally including their scores. Simplifies data extraction for efficient management and search operations.
Instructions
Retrieve a range of members from a Redis sorted set.
Args: key (str): The sorted set key. start (int): The starting index. end (int): The ending index. with_scores (bool, optional): Whether to include scores in the result.
Returns: str: The sorted set members in the given range or an error message.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
end | Yes | ||
key | Yes | ||
start | Yes | ||
with_scores | No |