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.
也许您更愿意对原来的节点集排序,将排序后的节点存储到变量中,然后选择前十个成员。
Again. Basic premise of binary search, or at least we set it up was, imagine I have a sorted list of elements. We get, in a second, to how we're going to get them sorted, and I want to know, is a particular element in that list..
好,二分查找的基本前提,或者是我们建立二分查找的基础,我们已经有了一个排好序的元素列表,我们就需要知道如何来快速的排序,如何从列表中找到特定的元素。
应用推荐