应用场景

 排行榜

sorted set 类型

 

1.zadd :添加

2.zscore: 查看某个值的分数

3.zrange : key  start end    withscores  按照分数排序

Redis之有序集合

4.zrem:删除

Redis之有序集合

5.zincrby key  score  value  :给某个值加分数

Redis之有序集合

 

相关文章: