Description Usage Arguments Details Value Author(s) References See Also Examples
Move the specified key/value pair in the currently selected database to another database.
1 | 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
1 2 3 4 5 6 7 8 9 | ## Not run:
redisConnect()
redisSelect(1)
redisSet('x',5)
redisMove('x',2)
redisSelect(2)
redisGet('x')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.