Arguments
...string[]
required
The keys of the sets to perform the intersection operation on.
Response
The members of the resulting set.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
await redis.sadd("set1", "a", "b", "c");
await redis.sadd("set2", "c", "d", "e");
const intersection = await redis.sinter("set1", "set2");
console.log(intersection); // ["c"]
Return the intersection between sets
await redis.sadd("set1", "a", "b", "c");
await redis.sadd("set2", "c", "d", "e");
const intersection = await redis.sinter("set1", "set2");
console.log(intersection); // ["c"]
Was this page helpful?