content/commands/tdigest.add.md
Adds one or more observations to a t-digest sketch.
is the key name for an existing t-digest sketch.
</details> <details open><summary><code>value</code></summary>is the floating-point value of an observation.
</details>{{< highlight bash >}} redis> TDIGEST.ADD t 1 2 3 OK {{< / highlight >}}
{{< highlight bash >}} redis> TDIGEST.ADD t string (error) ERR T-Digest: error parsing val parameter {{< / highlight >}}
| Redis Software | Redis Cloud | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:------| | <span title="Supported">✅ Supported</span> | <span title="Supported"><nobr>✅ Flexible & Annual</nobr></span> <span title="Supported">✅ Free & Fixed</nobr></span> | |
{{< multitabs id="tdigest-add-return-info" tab1="RESP2" tab2="RESP3" >}}
One of the following:
OK if executed correctly.-tab-sep-
One of the following:
OK if executed correctly.{{< /multitabs >}}