kevy

COPY

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

SyntaxCOPY source destination [REPLACE]
Groupgeneric
Arity-3
Since1.0.0
Flagswrite
ComplexityO(1) same-shard; O(V) across shards, where V is the value copied over the ring
Redis compatibilitydiffers: 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

← All commands