TDIGEST.CREATE key [COMPRESSION compression]
@tdigest,
@write,
Allocates memory and initializes a new t-digest sketch.
keyis the key name for this new t-digest sketch.
COMPRESSION compressionis 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.
redis> TDIGEST.CREATE t COMPRESSION 100
OK| Redis Enterprise |
Redis Cloud |
Notes |
|---|---|---|
| ✅ Supported |
✅ Flexible & Annual ✅ Free & Fixed |
One of the following:
OK if executed correctly.