TDIGEST.CREATE
Syntax
TDIGEST.CREATE key [COMPRESSION compression]
- Available in:
- Redis Stack / Bloom 2.4.0
- Time complexity:
- O(1)
Allocates memory and initializes a new t-digest sketch.
Required arguments
key
is key name for this new t-digest sketch.
Optional arguments
COMPRESSION compression
is a controllable tradeoff between accuracy and memory consumption. 100 is a common value for normal uses. 1000 is more accurate. If no value is passed by default the compression will be 100. For more information on scaling of accuracy versus the compression parameter see The t-digest: Efficient estimates of distributions.
Return value
Simple string reply - OK
if executed correctly, or [] otherwise.
Examples
redis> TDIGEST.CREATE t COMPRESSION 100
OK