Arguments
string
required
The array key.
Response
The number of slots containing values, or zero for a missing key.
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", 1000, "sample");
console.log(await redis.arcount("readings")); // 1
console.log(await redis.arlen("readings")); // "1001"
Count the occupied slots in an array.
await redis.arset("readings", 1000, "sample");
console.log(await redis.arcount("readings")); // 1
console.log(await redis.arlen("readings")); // "1001"
await redis.arset("readings", 1000, "sample");
console.log(await redis.arcount("readings")); // 1
console.log(await redis.arlen("readings")); // "1001"
Was this page helpful?