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

redisLPush

Add a value to the head tail of a list.


Description

Add values to the tail (LPush) or head (RPush) of a list corresponding to the specified key.

Usage

redisLPush(key, value, ...)

Arguments

key

The desired key corresponding to a list.

value

The element to add to the list.

...

Optional additional values to add to the list.

Details

If the key does not exist an empty list is created just before the append operation. If the key exists but is not a list an error is returned.

Value

The length of the list after the push operation.

Author(s)

B. W. Lewis

References

http://redis.io/commands

See Also

Examples

## Not run: 
redisConnect()
redisLPush('x',1)
redisLPush('x',2)
redisLPush('x',3)
redisRPush('x',11)
redisRPush('x',21)
redisRPush('x',31)
redisLLen('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.