COPYCopy 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 |