kevy

RENAMENX

Rename 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

← 全部命令