Arguments
string
required
The name of the Redis key.
Response
The length of the value.
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
await redis.set("key", "helloworld")
const length = await redis.strlen("key");
console.log(length); // 10
Return the length of a string stored at a key.
await redis.set("key", "helloworld")
const length = await redis.strlen("key");
console.log(length); // 10
Was this page helpful?