Description Usage Arguments Details Value Author(s) References See Also Examples
Add values to the tail (LPush) or head (RPush) of a list corresponding to the specified key.
1 | redisLPush(key, value, ...)
|
key |
The desired key corresponding to a list. |
value |
The element to add to the list. |
... |
Optional additional values to add to the list. |
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.
The length of the list after the push operation.
B. W. Lewis
http://redis.io/commands
1 2 3 4 5 6 7 8 9 10 11 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.