TDIGEST.ADD
Syntax
TDIGEST.ADD key value [value ...]
- Available in:
- Redis Stack / Bloom 2.4.0
- Time complexity:
- O(N) , where N is the number of samples to add
Adds one or more observations to a t-digest sketch.
Required arguments
key
is key name for an existing t-digest sketch.
value
is value of an observation (floating-point).
Return value
Simple string reply - OK
if executed correctly, or [] otherwise.
Examples
redis> TDIGEST.ADD t 1 2 3
OK
redis> TDIGEST.ADD t string
(error) ERR T-Digest: error parsing val parameter