lset

LSET

LSET key index value

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

An error is returned for out of range indexes-

Return value

Simple string reply

Examples

redis> RPUSH mylist "one" (integer) 1 redis> RPUSH mylist "two" (integer) 2 登录查看完整内容