rename
Renames a Redis key from an old name to a new name. Use this to change the key's identifier without altering its value.
Instructions
Renames a Redis key from old_key to new_key.
Args: old_key (str): The current name of the Redis key to rename. new_key (str): The new name to assign to the key.
Returns: Dict[str, Any]: A dictionary containing the result of the operation. On success: {"status": "success", "message": "..."} On error: {"error": "..."}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| old_key | Yes | ||
| new_key | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |