content/commands/tdigest.info.md
Returns information and statistics about a t-digest sketch.
is the key name for an existing t-digest sketch.
</details>{{< highlight bash >}} redis> TDIGEST.CREATE t OK redis> TDIGEST.ADD t 1 2 3 4 5 OK redis> TDIGEST.INFO t
| Redis Software | Redis Cloud | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:------| | <span title="Supported">✅ Supported</span> | <span title="Supported">✅ Flexible & Annual</span> <span title="Supported">✅ Free & Fixed</nobr></span> | |
{{< multitabs id="tdigest-info-return-info" tab1="RESP2" tab2="RESP3" >}}
One of the following:
[Array reply]({{< relref "/develop/reference/protocol-spec#arrays" >}}) with information about the given sketch as name-value pairs:
| Name
| [Simple string reply]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}) | Description |
|---|---|
Compression | [Integer reply]({{< relref "/develop/reference/protocol-spec#integers" >}}) |
The compression (controllable trade-off between accuracy and memory consumption) of the sketch
| Capacity | [Integer reply]({{< relref "/develop/reference/protocol-spec#integers" >}})
Size of the buffer used for storing the centroids and for the incoming unmerged observations
| Merged nodes | [Integer reply]({{< relref "/develop/reference/protocol-spec#integers" >}})
Number of merged observations
| Unmerged nodes | [Integer reply]({{< relref "/develop/reference/protocol-spec#integers" >}})
Number of buffered nodes (uncompressed observations)
| Merged weight | [Integer reply]({{< relref "/develop/reference/protocol-spec#integers" >}})
Weight of values of the merged nodes
| Unmerged weight | [Integer reply]({{< relref "/develop/reference/protocol-spec#integers" >}})
Weight of values of the unmerged nodes (uncompressed observations)
| Observations | [Integer reply]({{< relref "/develop/reference/protocol-spec#integers" >}})
Number of observations added to the sketch
| Total compressions | [Integer reply]({{< relref "/develop/reference/protocol-spec#integers" >}})
Number of times this sketch compressed data together
| Memory usage | [Integer reply]({{< relref "/develop/reference/protocol-spec#integers" >}})
Number of bytes allocated for the sketch
-tab-sep-
One of the following:
[Map reply]({{< relref "/develop/reference/protocol-spec#maps" >}}) with information about the given sketch as name-value pairs:
| Name
| [Simple string reply]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}) | Description |
|---|---|
Compression | [Integer reply]({{< relref "/develop/reference/protocol-spec#integers" >}}) |
The compression (controllable trade-off between accuracy and memory consumption) of the sketch
| Capacity | [Integer reply]({{< relref "/develop/reference/protocol-spec#integers" >}})
Size of the buffer used for storing the centroids and for the incoming unmerged observations
| Merged nodes | [Integer reply]({{< relref "/develop/reference/protocol-spec#integers" >}})
Number of merged observations
| Unmerged nodes | [Integer reply]({{< relref "/develop/reference/protocol-spec#integers" >}})
Number of buffered nodes (uncompressed observations)
| Merged weight | [Integer reply]({{< relref "/develop/reference/protocol-spec#integers" >}})
Weight of values of the merged nodes
| Unmerged weight | [Integer reply]({{< relref "/develop/reference/protocol-spec#integers" >}})
Weight of values of the unmerged nodes (uncompressed observations)
| Observations | [Integer reply]({{< relref "/develop/reference/protocol-spec#integers" >}})
Number of observations added to the sketch
| Total compressions | [Integer reply]({{< relref "/develop/reference/protocol-spec#integers" >}})
Number of times this sketch compressed data together
| Memory usage | [Integer reply]({{< relref "/develop/reference/protocol-spec#integers" >}})
Number of bytes allocated for the sketch
{{< /multitabs >}}