Skip to main content

SINTERCARD

Note

Official reference: SINTERCARD.

Count intersection members, optionally up to a limit.

Syntax​

SINTERCARD numkeys key [key ...] [LIMIT limit]

numkeys must match the key count. LIMIT stops counting at the threshold; zero means no limit.

Results​

ReturnRowsContent
ResultSet1RESULT field, LONG type

Example​

SADD demo:tags java jdbc
SADD demo:other java
SINTERCARD 2 demo:tags demo:other LIMIT 10