With a sorted set, is there an easy way to compute "global" values, for instance the average, median, max, min, etc. of all the scores in the set, or do I always need to extract the scores and do the calculations myself (which is a bit of a pain ...)?
You can do it all with ZCARD and ZRANGE (withscore of course).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With