rename
Renames a Redis key from old_key to new_key, providing a dictionary indicating the operation's success or error. Use it to update key names efficiently in Redis databases.
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 |
Input Schema (JSON Schema)
{
"properties": {
"new_key": {
"title": "New Key",
"type": "string"
},
"old_key": {
"title": "Old Key",
"type": "string"
}
},
"required": [
"old_key",
"new_key"
],
"title": "renameArguments",
"type": "object"
}