Skip to main content

MOVE

Note

Official reference: MOVE.

Move a key to another logical database.

Syntax​

MOVE key database

Logical database numbers start at zero. Redis Cluster does not support switching between logical databases.

Results​

ReturnRowsContent
Update count--1 if key was moved; 0 otherwise

Example​

SET demo:message hello
MOVE demo:message 1