const length1 = await redis.rpush("key", "a", "b", "c"); console.log(length1); // 3 const length2 = await redis.rpush("key", "d"); console.log(length2); // 4
Push an element at the end of the list.
The key of the list.
One or more elements to push at the end of the list.
The length of the list after the push operation.
Was this page helpful?