Redis无序集合命令


有序集合

准备数据

 获取 score 高分 top10 排名 (ZREVRANGE 为降序,ZRANGE 为升序)

 zravrange game_rank  0 10 withscores  带分数

查看用户 ee 的实际排名 (ZREVRANK 为降序,ZRANK 为升序)、实时分数

 

猜你喜欢

转载自www.cnblogs.com/wujf-myblog/p/12506140.html