RENAMENXRename a key only if the destination does not exist (write routed at the runtime Op level).
| Syntax | RENAMENX 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 |
| Redis compatibility | 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 |