await redis.rpush("key", "a", "b", "c"); const index = await redis.lpos("key", "b"); console.log(index); // 1
Returns the index of matching elements inside a list.
opts.count
Was this page helpful?