Redis:排序集中的分数总和 [英] Redis: Sum of SCORES in Sorted Set
本文介绍了Redis:排序集中的分数总和的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
获得 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:排序集中的分数总和的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文