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

← すべてのコマンド