Redis实现文章访问量的排序

使用zset集合,命令如下

ZRANGE salary 0 -1 WITHSCORES        # 递增排列
ZREVRANGE salary 0 -1 WITHSCORES     # 递减排列

自定义一个数值区间排序

zrevrangebyscroe [set] [max] [min]

原文地址:https://www.cnblogs.com/ushowtime/p/12518559.html