Arguments
string
required
The array key.
...(number | string)[]
required
One or more indexes, passed as separate arguments.
Response
The number of occupied slots removed. Empty slots and repeated indexes do not increase the count.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
await redis.arset("readings", 0, "a", "b", "c");
console.log(await redis.ardel("readings", 1, 1, 99)); // 1
console.log(await redis.argetrange("readings", 0, 2)); // ["a", null, "c"]
Delete array values without shifting later indexes.
await redis.arset("readings", 0, "a", "b", "c");
console.log(await redis.ardel("readings", 1, 1, 99)); // 1
console.log(await redis.argetrange("readings", 0, 2)); // ["a", null, "c"]
await redis.arset("readings", 0, "a", "b", "c");
console.log(await redis.ardel("readings", 1, 1, 99)); // 1
console.log(await redis.argetrange("readings", 0, 2)); // ["a", null, "c"]
Was this page helpful?