MOVE

Since 1.1.0Keys

Syntax

MOVE key db
  • Flags: write
  • ACL categories: @generic, @keyspace, @slow, @write
  • Arity: 3

Moves key to database db.

Reply

  • 1 if the key was moved.
  • 0 if the key does not exist, or db already has a key of that name; then nothing changes.

Examples

> SET m v
OK
> MOVE m 1
(integer) 1
> MOVE m 1
(integer) 0