LSET
Since 1.1.0Lists
Syntax
LSET key index elementReplaces the element at index in the list at key. Negative indexes count from the end.
Reply
OK.ERR index out of rangeif the index is outside the list.ERR no such keyif the key does not exist.
Examples
> RPUSH l a b c
(integer) 3
> LSET l 0 A
OK
> LSET l 9 x
(error) ERR index out of range