LSET key index element

Sets the list element at index to element. For more information on the index argument, see LINDEX.

An error is returned for out of range indexes.

@return

@simple-string-reply

@examples

redis> RPUSH mylist "one"
TBD
redis> RPUSH mylist "two"
TBD
redis> RPUSH mylist "three"
TBD
redis> LSET mylist 0 "four"
TBD
redis> LSET mylist -2 "five"
TBD
redis> LRANGE mylist 0 -1