List
RPUSH
Push an element at the end of the list.
Arguments
keybodystringrequired
The key of the list.
elementsbody...TValue[]required
One or more elements to push at the end of the list.
Response
numberrequired
The length of the list after the push operation.
Example
const length1 = await redis.rpush("key", "a", "b", "c"); console.log(length1); // 3const length2 = await redis.rpush("key", "d"); console.log(length2); // 4