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

redisLRange

Copy values from a list.


Description

Return the elements of a list between the start and end indices, inclusively.

Usage

redisLRange(key, start, end, ...)

Arguments

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 raw=TRUE to skip de-serialization of the data.

Details

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.

Value

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.

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)
redisLRange('x',0,2)

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