Arguments
string
required
The key of the list.
number
required
At which index to set the value.
TValue
required
The value to set.
Response
OKDocumentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
await redis.lpush("key", "a", "b", "c");
await redis.lset("key", 1, "d");
// list is now ["a", "d", "c"]
Set a value at a specific index.
OKawait redis.lpush("key", "a", "b", "c");
await redis.lset("key", 1, "d");
// list is now ["a", "d", "c"]
Was this page helpful?