Description Usage Arguments Details Value Author(s) References See Also Examples
Return the elements of a list between the start and end indices, inclusively.
1 | redisLRange(key, start, end, ...)
|
key |
A key corresponding to a list. |
start |
The beginning index from which to read list elements. |
end |
The ending index. |
... |
Optional additional arguments. Specify |
List indices begin with 0. If the start or end indices are beyond the bounds of the list, return the list elements up to the index bounds.
An indexed list containing the returned values. An error will be thrown if the specified key does not correspond to a list or if the key can't be found.
B. W. Lewis
http://redis.io/commands
1 2 3 4 5 6 7 8 | ## Not run:
redisConnect()
redisLPush('x',1)
redisLPush('x',2)
redisLPush('x',3)
redisLRange('x',0,2)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.