Module Hub Beta

TDIGEST.MERGE

destkey sourcekey [sourcekey ...]

Merges one or more sourcekey into destkey.

If destkey is missing, an empty t-digest structure is initialized with a default compression of 400.

Return Value

Simple string: “OK”

Examples

redis> TDIGEST.ADD myuniform1 1 1 2 1 3 1
(integer) 3
redis> TDIGEST.ADD myuniform2 4 1 5 1 6 1
(integer) 3
redis> TDIGEST.MERGE myuniform myuniform1 myuniform2
OK

© 2017 Redis Labs, Inc. All rights reserved.