Module Hub Beta

TDIGEST.ADD

key value count [value count ...]

Adds a value with the specified count.

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

Return Value

Integer: the sum of counts for all values added.

Examples

redis> TDIGEST.ADD myuniform 1 1
(integer) 1
redis> TDIGEST.ADD myuniform 2 1
(integer) 1
redis> TDIGEST.ADD myuniform 3 1 4 1 5 1
(integer) 3

© 2017 Redis Labs, Inc. All rights reserved.