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