Redis:SCORES总和(已排序) [英] Redis: Sum of SCORES in Sorted Set
本文介绍了Redis:SCORES总和(已排序)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Redis排序集中获得SCORES总数的最佳方法是什么?
What's the best way to get the sum of SCORES in a Redis sorted set?
推荐答案
我认为唯一的选择是迭代排序后的集合并计算总和客户端.
The only option I think is iterating the sorted set and computing the sum client side.
这篇关于Redis:SCORES总和(已排序)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文