RENAMERename a key, overwriting the destination (write routed at the runtime Op level).
| 语法 | RENAME key newkey |
| 分组 | generic |
| 参数个数 | 3 |
| 起始版本 | 1.0.0 |
| 标志 | write |
| 复杂度 | 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 兼容性 | 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 |