Set a value at a specific index.
await redis.lpush("key", "a", "b", "c"); await redis.lset("key", 1, "d"); // list is now ["a", "d", "c"]
The key of the list.
At which index to set the value.
The value to set.
OK
Was this page helpful?