zadd
Add members to a Redis sorted set with specified scores and optional expiration times. Manage and organize data efficiently within Redis MCP Server for structured storage and retrieval.
Instructions
Add a member to a Redis sorted set with an optional expiration time.
Args: key (str): The sorted set key. score (float): The score of the member. member (str): The member to add. expiration (int, optional): Expiration time in seconds.
Returns: str: Confirmation message or an error message.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
expiration | No | ||
key | Yes | ||
member | Yes | ||
score | Yes |