Check if multiple members exist in a set
await redis.sadd("set", "a", "b", "c"); const members = await redis.smismember("set", ["a", "b", "d"]); console.log(members); // [1, 1, 0]
The key of the set to check.
The members to check
An array of 0 and 1 values. 1 if the member exists in the set, 0 if not.
0
1
Was this page helpful?