Set

SINTER

Return the intersection between sets

Arguments

keysbody*List[str]required

The keys of the sets to perform the intersection operation on.

Response

set[str]required

The resulting set.

Example
redis.sadd("set1", "a", "b", "c"); redis.sadd("set2", "c", "d", "e"); assert redis.sinter("set1", "set2") == {"c"}
Loading search…