TDIGEST.CREATE

Syntax
TDIGEST.CREATE key [COMPRESSION compression]
Available in:
Redis Open Source / Bloom 2.4.0
Time complexity:
O(1)
ACL categories:
@tdigest, @write,

Allocates memory and initializes a new t-digest sketch.

Required arguments

key

is the 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 and also the default if not specified. 1000 is more accurate. For more information on scaling of accuracy versus the compression value see The t-digest: Efficient estimates of distributions.

Example

redis> TDIGEST.CREATE t COMPRESSION 100
OK

Return information

One of the following:

RATE THIS PAGE
Back to top ↑