summaryrefslogtreecommitdiffstats
path: root/iredis/data/commands/move.md
blob: ceb212caac992ba433b64ef5a4b9d1410618c6d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
Move `key` from the currently selected database (see `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.

@return

@integer-reply, specifically:

* `1` if `key` was moved.
* `0` if `key` was not moved.