TDIGEST.MAX key
@tdigest,
@read,
@fast,
Returns the maximum observation value from a t-digest sketch.
keyis the key name for an existing t-digest sketch.
redis> TDIGEST.CREATE t
OK
redis> TDIGEST.MAX t
"nan"
redis> TDIGEST.ADD t 3 4 1 2 5
OK
redis>TDIGEST.MAX t
"5"| Redis Enterprise |
Redis Cloud |
Notes |
|---|---|---|
| ✅ Supported |
✅ Flexible & Annual ✅ Free & Fixed |
One of the following:
nan is returned if the sketch is empty.