RENAMENXRename a key only if the destination does not exist (write routed at the runtime Op level).
| 语法 | RENAMENX key newkey |
| 分组 | generic |
| 参数个数 | 3 |
| 起始版本 | 1.0.0 |
| 标志 | write |
| 复杂度 | O(1) for a string value; O(M) for a collection of M elements |
| Redis 兼容性 | differs: cross-shard RENAMENX is a non-atomic Take, Put, restore-on-refusal sequence — there is a window in which the source is absent from the keyspace |