Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

redisMove

Move the specified key/value pair to another database.


Description

Move the specified key/value pair in the currently selected database to another database.

Usage

redisMove(key, dbindex)

Arguments

key

The key to move.

dbindex

The destination database index number.

Details

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.

Value

Returns TRUE if the key/value pair was moved, or FALSE otherwise.

Author(s)

B. W. Lewis

References

http://redis.io/commands

See Also

Examples

## Not run: 
redisConnect()
redisSelect(1)
redisSet('x',5)
redisMove('x',2)
redisSelect(2)
redisGet('x')

## End(Not run)

rredis

"Redis" Key/Value Database Client

v1.7.0
Apache License (>= 2.0)
Authors
B. W. Lewis
Initial release
2015-07-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.