The popped element(s). If count was specified, an array of elements is
returned, otherwise a single element is returned. If the list is empty, null
is returned.
Copy
Ask AI
await redis.rpush("key", "a", "b", "c"); const element = await redis.lpop("key");console.log(element); // "a"