kevy

RENAMENX

Rename a key only if the destination does not exist (write routed at the runtime Op level).

SyntaxRENAMENX key newkey
Groupgeneric
Arity3
Since1.0.0
Flagswrite
ComplexityO(1) for a string value; O(M) for a collection of M elements
Redis compatibilitydiffers: 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

← All commands