Arguments
string
required
The key of the set to check.
TMember[]
The members to check
Response
An array of
0 and 1 values.
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 members = await redis.smismember("set", ["a", "b", "d"]);
console.log(members); // [1, 1, 0]
Check if multiple members exist in a set
0 and 1 values.
1 if the member exists in the set, 0 if not.await redis.sadd("set", "a", "b", "c");
const members = await redis.smismember("set", ["a", "b", "d"]);
console.log(members); // [1, 1, 0]
Was this page helpful?