Overall
SDKs
- Typescript
- @upstash/redis
- @upstash/query
- @upstash/vector
- @upstash/edge-flags
- @upstash/ratelimit
- @upstash/kafka
- @upstash/qstash
- Python
DevOps
- Terraform
- Pulumi
- CLI
List
LLEN
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
Arguments
The key of the list.
Response
The length of the list at key.
await redis.rpush("key", "a", "b", "c");
const length = await redis.llen("key");
console.log(length); // 3
Was this page helpful?
await redis.rpush("key", "a", "b", "c");
const length = await redis.llen("key");
console.log(length); // 3
Assistant
Responses are generated using AI and may contain mistakes.