Set
SINTER
Return the intersection between sets and store the resulting set in a key
await redis.sadd("set1", "a", "b", "c");
await redis.sadd("set2", "c", "d", "e");
await redis.sinter("destination", "set1", "set2");
Arguments
destination
string
requiredThe key of the set to store the resulting set in.
keys
...string[]
requiredThe keys of the sets to perform the intersection operation on.
Response
The members of the resulting set.
await redis.sadd("set1", "a", "b", "c");
await redis.sadd("set2", "c", "d", "e");
await redis.sinter("destination", "set1", "set2");