ax 4 zrank key member 5 zrevrank key member Redis学习07——存储有序字符串集合(sorted set) 一、有序字符串集合(sorted set)说明 Sorted-Set和Set类型极为相似,它们都是字符串的集合,都不允许重复的成员出现在一个Set 中...
基于20个网页-相关网页
It looks like you need a set or a sorted set.
看起来你需要设置或排序。
You can use a Sorted Set, in which the score is your time (an integer as you've suggested), and then you query using ZRANGEBYSCORE.
你可以使用一个排序集,其中得分是你的时间(一个整数作为你的建议),然后你查询使用zrangebyscore。
You might prefer to sort the original node-set, store the sorted nodes in a variable, and select the first ten members of the sorted set.
也许您更愿意对原来的节点集排序,将排序后的节点存储到变量中,然后选择前十个成员。
应用推荐