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

redisLSet

Set a value within a list.


Description

Set the value of an element at the given index in a list corresponding to the specified key.

Usage

redisLSet(key, index, value)

Arguments

key

A key corresponding to a Redis list.

index

The index within the list of the element to write to.

value

The value to set.

Details

Indices begin at zero. Out of range indices throw an error.

Value

TRUE if successful, FALSE otherwise.

Author(s)

B. W. Lewis

References

http://redis.io/commands

See Also

Examples

## Not run: 
redisConnect()
redisLPush('list',pi)
redisLSet('list',0,5)
redisLIndex('list',0)

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