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
向t-digest草图添加一个或多个观测值。
必需的参数
key
is key name for an existing t-digest sketch.
value
is value of an observation (floating-point).
返回值
Simple string reply - OK
如果正确执行,否则返回 []。
示例
redis> TDIGEST.ADD t 1 2 3
OK
redis> TDIGEST.ADD t string
(error) ERR T-Digest: error parsing val parameter