Check if a member exists in a set
await redis.sadd("set", "a", "b", "c"); const isMember = await redis.sismember("set", "a"); console.log(isMember); // 1
The key of the set to check.
The member to check for.
1 if the member exists in the set, 0 if not.
1
0
Was this page helpful?