Skip to main content

COPY

Note

Official reference: COPY.

Copy a key, optionally to another logical database.

Syntax

COPY source destination [DB database] [REPLACE]

DB selects the destination logical database, defaulting to the current one. REPLACE allows overwriting an existing destination.

Results

ReturnRowsContent
Update count--1 if successful; 0 if failed

Example

SET demo:original hello
COPY demo:original demo:copy REPLACE