content/commands/move.md
Move key from the currently selected database (see [SELECT]({{< relref "/commands/select" >}})) to the specified
destination database.
When key already exists in the destination database, or it does not exist in
the source database, it does nothing.
It is possible to use MOVE as a locking primitive because of this.
| Redis Software | Redis Cloud | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:------| | <span title="Not supported">❌ Standard</span> <span title="Not supported"><nobr>❌ Active-Active</nobr></span> | <span title="Not supported">❌ Standard</span> <span title="Not supported"><nobr>❌ Active-Active</nobr></span> | Redis Software does not support shared databases due to potential negative performance impacts and blocks any related commands. |
{{< multitabs id="move-return-info" tab1="RESP2" tab2="RESP3" >}}
One of the following:
1 if key was moved.0 if key wasn't moved.-tab-sep-
One of the following:
1 if key was moved.0 if key wasn't moved.{{< /multitabs >}}