await redis.lpush("key", "a", "b", "c"); const length = await redis.lpushx("key", "d"); console.log(length); // 4
Push an element at the head of the list only if the list exists.
0
Was this page helpful?