blob: fad99ce5632811992bed88216f5658e6d11e394c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
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
```cli
RPUSH mylist "one"
RPUSH mylist "two"
RPUSH mylist "three"
LSET mylist 0 "four"
LSET mylist -2 "five"
LRANGE mylist 0 -1
```
|