Arguments
string
required
The array key.
number | string
required
The zero-based index to access.
...TData[]
required
One or more values to write.
Response
The number of previously empty slots that were filled. Overwriting a value contributes zero.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
console.log(await redis.arset("readings", 0, 21.5, 21.7)); // 2
console.log(await redis.arset("readings", 1, 22.1)); // 0
Write consecutive values starting at an array index.
console.log(await redis.arset("readings", 0, 21.5, 21.7)); // 2
console.log(await redis.arset("readings", 1, 22.1)); // 0
console.log(await redis.arset("readings", 0, 21.5, 21.7)); // 2
console.log(await redis.arset("readings", 1, 22.1)); // 0
Was this page helpful?