redisLSet: Set a value within a list.

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/listCMD.R

Description

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

Usage

1
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

redisLPush

Examples

1
2
3
4
5
6
7
## Not run: 
redisConnect()
redisLPush('list',pi)
redisLSet('list',0,5)
redisLIndex('list',0)

## End(Not run)

bwlewis/rredis documentation built on Jan. 3, 2022, 4:53 p.m.