await redis.lpush("key", "a", "a", "b", "b", "c"); const removed = await redis.lrem("key", 4, "b"); console.log(removed) // 2
Remove the first count occurrences of an element from a list.
count
Was this page helpful?