Description Usage Arguments Details Value Author(s) References See Also Examples
Atomically rename a key.
1 | redisRename(old, new, NX = FALSE)
|
old |
Original key name. |
new |
New key name. |
NX |
Set NX = TRUE to prevent overwriting a key that already exists. |
If the source and destination name are the same an error is returned. If newkey already exists it is overwritten unless NX = TRUE, in which case the operation fails.
Returns the Redis status "OK" unless NX = TRUE
. When
NX = TRUE
, returns 1 if successful, 0 otherwise.
B. W. Lewis
http://redis.io
1 2 3 4 5 6 | ## Not run:
redisConnect()
redisSet('x',5)
redisRename('x','y')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.