kevy

COPY

Copy a key's value, and its remaining TTL, to another key.

语法COPY source destination [REPLACE]
分组generic
参数个数-3
起始版本1.0.0
标志write
复杂度O(1) same-shard; O(V) across shards, where V is the value copied over the ring
Redis 兼容性differs: the DB argument is not accepted — kevy is single-database. A cross-shard copy is not atomic with anything else, but a failure between its two steps leaves both keys untouched

← 全部命令