Skip to main content

Documentation Index

Fetch the complete documentation index at: https://upstash.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Arguments

keys
*List[str]
required
The keys of the sets to perform the intersection operation on.

Response

The resulting set.
redis.sadd("set1", "a", "b", "c"); 
redis.sadd("set2", "c", "d", "e"); 

assert redis.sinter("set1", "set2") == {"c"}