await redis.lpush("key", "a", "b", "c"); 
await redis.lset("key", 1, "d"); 

// list is now ["a", "d", "c"]

Arguments

key
string
required
The key of the list.
index
number
required
At which index to set the value.
data
TValue
required
The value to set.

Response

OK
await redis.lpush("key", "a", "b", "c"); 
await redis.lset("key", 1, "d"); 

// list is now ["a", "d", "c"]