SINTERCARD
Counts members in a set intersection.
Sets · Example verified
Syntax covered here
SINTERCARD numkeys key1 key2The case declares two input keys and returns zero because one input is missing.
Tested example & replies
Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.
# connection: default
> SADD team a
1
# connection: default
> SINTERCARD 2 team other
0