Move the specified key/value pair to another database.
Move the specified key/value pair in the currently selected database to another database.
redisMove(key, dbindex)
key |
The key to move. |
dbindex |
The destination database index number. |
This command returns TRUE only if the key was successfully moved,
and FALSE if the target key was already there or if the source key was
not found at all. It is possible to use redisMove
as
a locking primitive.
Returns TRUE if the key/value pair was moved, or FALSE otherwise.
B. W. Lewis
http://redis.io/commands
## Not run: redisConnect() redisSelect(1) redisSet('x',5) redisMove('x',2) redisSelect(2) redisGet('x') ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.