$stats returns multiple basic metrics in one pass.
For the selected field, it computes:
countsumminmaxavg
$count, $sum, $min, $max, and $avg together, but returned as a single object.
Compatibility
Field must be
FAST.
Arguments
- TypeScript
- Python
- Redis CLI
Output
min, max, and avg can be null when no values are available.