ZINTERSTORE

    Computes the intersection of sorted sets given by the specified keys, and stores the result in destination. It is mandatory to provide the number of input keys (numkeys) before passing the input keys and the other (optional) arguments.

    For a description of the WEIGHTS and AGGREGATE options, see ZUNIONSTORE.

    Integer reply: the number of elements in the resulting sorted set at destination.

    1. (integer) 1
    2. dragonfly> ZADD zset1 2 "two"
    3. (integer) 1
    4. (integer) 1
    5. dragonfly> ZADD zset2 2 "two"
    6. (integer) 1
    7. (integer) 1
    8. dragonfly> ZINTERSTORE out 2 zset1 zset2 WEIGHTS 2 3
    9. (integer) 2
    10. 1) "one"
    11. 2) "5"
    12. 3) "two"