rename
Change the name of a Redis key from an old identifier to a new one using the rename tool. Input the old and new key names to update keys in your Redis database efficiently.
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 |
---|---|---|---|
new_key | Yes | ||
old_key | Yes |