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

redisLIndex

Retrieve a value from a Redis 'list.'


Description

Retrieve a value from a Redis 'list' at the specified index without removing it from the list.

Usage

redisLIndex(key, index, ...)

Arguments

key

The key (whose value is of the type 'list').

index

The list index to retrieve.

...

Optional additional arguments. Specify raw=TRUE to skip de-serialization of the data.

Details

List indices begin at 0. Negative indexes are supported, for example -1 is the last element, -2 the penultimate and so on. If the value stored at key is not of the 'list' type an error is returned. If the index is out of range an empty string is returned.

Value

The corresponding value or an empty string if the index is out of bounds.

Author(s)

B. W. Lewis

References

http://redis.io/commands

See Also

Examples

## Not run: 
redisConnect()

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