Add a value to the head tail of a list.
Add values to the tail (LPush) or head (RPush) of a list corresponding to the specified key.
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
## 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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.