ZUNION
Syntax
ZUNION numkeys key [key ...] [WEIGHTS weight [weight ...]] [AGGREGATE <SUM | MIN | MAX>] [WITHSCORES]
- Available since:
- 6.2.0
- Time complexity:
- O(N)+O(M*log(M)) with N being the sum of the sizes of the input sorted sets, and M being the number of elements in the resulting sorted set.
- ACL categories:
-
@read
,@sortedset
,@slow
,
此命令类似于ZUNIONSTORE
,但它不存储生成的排序集合,而是将其返回给客户端。
有关WEIGHTS
和AGGREGATE
选项的描述,请参见ZUNIONSTORE
。