redisBRPopLPush(src, dest, timeout = 0, ...)
raw=TRUE
to skip de-serialization of the data.redisRPopLPush
command the content of the
two lists will be "a","b" and "c","foo","bar".If the key does not exist or the list is already empty the special value NULL is returned. If the srckey and dstkey are the same the operation is equivalent to removing the last element from the list and pusing it as first element of the list, so it's a "list rotation" command.
See the Redis reference below for programming examples and discussion.
redisRPopLPush
## Not run:
# redisConnect()
# redisLPush('x',1)
# redisBRPopLPush('x','x')
# ## End(Not run)
Run the code above in your browser using DataLab