Skip to main content

ZINTERCARD

Note

Official reference: ZINTERCARD.

Count intersection members, optionally up to a limit.

Syntax​

ZINTERCARD numkeys key [key ...] [LIMIT limit]

numkeys must match the number of following source keys.

LIMIT caps the count; zero means no limit.

Results​

ReturnRowsContent
ResultSet1RESULT field, LONG type

Example​

ZADD demo:ranking 10 alice 20 bob
ZADD demo:other 30 alice
ZINTERCARD 2 demo:ranking demo:other LIMIT 10