Download the PHP package zqhong/redis-ranking without Composer
On this page you can find all versions of the php package zqhong/redis-ranking. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package redis-ranking
Redis-Ranking
Redis-Ranking 库使用 Redis 的 SortedSet 存储排行数据。其中,
- 使用 ZINCRBY 导入单条分数变更记录;
- 使用 ZREVRANGE 获取 top x 的用户数据(按照 score 从大到小排序);
- 使用 ZRANK 获取某个用户的排名;
- 使用 ZSCORE 获取某个用户的分数;
安装
使用
目前存在问题:
如果排名规则不仅仅是依靠 score 的话,这种方式的实现就不大合适。
All versions of redis-ranking with dependencies
PHP Build Version
Package Version
The package zqhong/redis-ranking contains the following files
Loading the files please wait ....