CMS.MERGE

Syntax
CMS.MERGE destination numKeys source [source ...] [WEIGHTS weight
  [weight ...]]
Available in:
Redis Stack / Bloom 2.0.0
Time complexity:
O(n) where n is the number of sketches

将多个草图合并为一个草图。所有草图的宽度和深度必须相同。可以使用权重来乘以某些草图。默认权重为1。

参数:

  • dest: 目标草图的名称。必须已初始化。
  • numKeys: 要合并的草图数量。
  • src: 要合并的源草图名称。
  • weight: 每个草图的倍数。默认值为1。

返回

Simple string reply - OK 如果正确执行,否则返回 []。

示例

redis> CMS.MERGE dest 2 test1 test2 WEIGHTS 1 3
OK

RATE THIS PAGE
Back to top ↑