RENAMERename a key, overwriting the destination (write routed at the runtime Op level).
| Syntax | RENAME key newkey |
| Group | generic |
| Arity | 3 |
| Since | 1.0.0 |
| Flags | write |
| Complexity | O(1) for a string value; O(M) for a collection of M elements (the entry's weight is re-derived by walking the value) |
| Redis compatibility | differs: a cross-shard rename is a non-atomic Take then Put — there is a window in which neither key is visible; co-locate the two keys with a {hashtag} for the atomic path |