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
| Return | Rows | Content |
|---|---|---|
| ResultSet | 1 | RESULT field, LONG type |
Example
SADD demo:tags java jdbc
SADD demo:other java
SINTERCARD 2 demo:tags demo:other LIMIT 10