Arguments
string
required
The key of the set to check.
TMember
The member to check for.
Response
1 if the member exists in the set, 0 if not.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
await redis.sadd("set", "a", "b", "c");
const isMember = await redis.sismember("set", "a");
console.log(isMember); // 1
Check if a member exists in a set
1 if the member exists in the set, 0 if not.await redis.sadd("set", "a", "b", "c");
const isMember = await redis.sismember("set", "a");
console.log(isMember); // 1
Was this page helpful?