RENAMENX
Rename a key only if the destination does not exist (write routed at the runtime Op level).
RENAMENX key newkey
Complexity
O(1) for a string value; O(M) for a collection of M elements
Complexity and compatibility are read out of kevy's implementation, not copied from Redis's reference. Several genuinely differ.
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
See also
DELEXISTSEXPIREEXPIREATPERSISTPEXPIREPEXPIREATPTTLRENAMETTLTYPEUNLINK