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 |