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

redisRPop

Remove the last element from a list.


Description

Atomically return and remove the last element of the list associated with the specified key. For example if the list contains the elements "a","b","c" redisRPop will return "c" and the list will become "a","b".

Usage

redisRPop(key, ...)

Arguments

key

The desired key associated with a list.

...

Optional additional arguments. Specify raw=TRUE to skip de-serialization of the data.

Value

The first element of the list associated with the specified key, or NULL if the list is empty.

Author(s)

B. W. Lewis

References

http://redis.io/commands

See Also

Examples

## Not run: 
redisConnect()
redisLPush('a',1)
redisLPush('a',2)
redisLPush('a',3)
redisRPop('a')

## 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.