Arguments
string
required
The key of the list.
Response
The length of the list at key.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
await redis.rpush("key", "a", "b", "c");
const length = await redis.llen("key");
console.log(length); // 3
Returns the length of the list stored at key.
await redis.rpush("key", "a", "b", "c");
const length = await redis.llen("key");
console.log(length); // 3
Was this page helpful?