lLen(key: string): number
Parameter | Type | Description |
key | string | Key name. |
Type | Description |
number | On success, the length of the list is returned. |
import redis from "pts/redis";let client = new redis.Client("redis://:<password>@<host>:6379/0");export default function main() {let lPushResp = client.lPush("list", "foo", "bar", "zoo");console.log(redis lPush ${lPushResp}); // 3let lLenResp = client.lLen("list");console.log(redis lLen ${lLenResp}); // 3}
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback