content/commands/zinter.md
{{< note >}} This command's behavior varies in clustered Redis environments. See the [multi-key operations]({{< relref "/develop/using-commands/multi-key-operations" >}}) page for more information. {{< /note >}}
This command is similar to [ZINTERSTORE]({{< relref "/commands/zinterstore" >}}), but instead of storing the resulting
sorted set, it is returned to the client.
For a description of the WEIGHTS and AGGREGATE options, see [ZUNIONSTORE]({{< relref "/commands/zunionstore" >}}).
{{% redis-cli %}} ZADD zset1 1 "one" ZADD zset1 2 "two" ZADD zset2 1 "one" ZADD zset2 2 "two" ZADD zset2 3 "three" ZINTER 2 zset1 zset2 ZINTER 2 zset1 zset2 WITHSCORES {{% /redis-cli %}}
| Redis Software | Redis Cloud | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:------| | <span title="Supported">✅ Standard</span> <span title="Supported"><nobr>✅ Active-Active</nobr></span> | <span title="Supported">✅ Standard</span> <span title="Supported"><nobr>✅ Active-Active</nobr></span> | |
{{< multitabs id="zinter-return-info" tab1="RESP2" tab2="RESP3" >}}
-tab-sep-
{{< /multitabs >}}