CMS.MERGE

CMS.MERGE destination numKeys source [source ...] [WEIGHTS weight
  [weight ...]]
Available in:
Redis Open Source / Bloom 2.0.0
Time complexity:
O(n) where n is the number of sketches
ACL categories:
@cms, @write,
Compatibility:
Redis Software and Redis Cloud compatibility
Note:
This command's behavior varies in clustered Redis environments. See the multi-key operations page for more information.

Merges several sketches into one sketch. All sketches must have identical width and depth. Weights can be used to multiply certain sketches. Default weight is 1.

Parameters:

  • dest: The name of destination sketch. Must be initialized.
  • numKeys: Number of sketches to be merged.
  • src: Names of source sketches to be merged.
  • weight: Multiple of each sketch. Default =1.

Examples

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

Redis Software and Redis Cloud compatibility

Redis
Software
Redis
Cloud
Notes
✅ Supported
✅ Flexible & Annual
✅ Free & Fixed

Return information

One of the following:

RATE THIS PAGE
Back to top ↑