kevy

RENAME

Rename a key, overwriting the destination (write routed at the runtime Op level).

语法RENAME key newkey
分组generic
参数个数3
起始版本1.0.0
标志write
复杂度O(1) for a string value; O(M) for a collection of M elements (the entry's weight is re-derived by walking the value)
Redis 兼容性differs: a cross-shard rename is a non-atomic Take then Put — there is a window in which neither key is visible; co-locate the two keys with a {hashtag} for the atomic path

← 全部命令