TDIGEST.MAX key

Available in: Redis Stack

Time complexity: O(1)

Get maximum value from the sketch. Will return DBL_MIN if the sketch is empty.

Parameters:

  • key: The name of the sketch.

Return

Simple string reply of MAXIMUM value from the sketch. Will return DBL_MIN if the sketch is empty.

Examples

redis> TDIGEST.MAX t-digest
"10"