Push an element at the end of the list.
const length1 = await redis.rpush("key", "a", "b", "c"); console.log(length1); // 3 const length2 = await redis.rpush("key", "d"); console.log(length2); // 4
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?