定制 redis/ranking 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

redis/ranking

Composer 安装命令:

composer require redis/ranking

包简介

Wrapping Redis's sorted set APIs for specializing ranking operations.

README 文档

README

Coverage Status Stable Version Download Count

Requirements

Installation

  • Using composer
{
    "require": {
       "redis/ranking": "1.2.*"
    }
}
$ composer update redis/ranking --dev

Benchmark sample

% php sample/benchmark.php
Add: 18,350 queries/s
Update: 17,876 queries/s
Get score: 21,361 queries/s
Get rank: 22,123 queries/s
php sample/benchmark.php  1.50s user 2.96s system 43% cpu 10.203 total

How to run unit test

Run with default setting.

% vendor/bin/phpunit -c phpunit.xml.dist

Currently tested with PHP 7.4.5 + Redis 5.0.7.

TODO

  • Implement following APIs
    • zRemRangeByRank, zDeleteRangeByRank - Remove all members in a sorted set within the given indexes
    • zRemRangeByScore, zDeleteRangeByScore - Remove all members in a sorted set within the given scores
  • Implement zUnion API as a static helper API.

History

  • 1.3.0
    • Updated libraries
    • Added PHP 8 Support and omit PHP 5 support.
  • 1.2.0
    • Updated dev tools
  • 1.1.0
    • Code Refactoring
    • Added PHP 7.0 support
    • Library update
    • Removed PHP5.3 and PHP5.4 compatibility
  • 1.0.1
    • bugfix: correct variable name.
    • supports travis CI and passed test.
  • 1.0.0
    • Published

License

It is released under the PHP License, version 3.01.

Copyright

统计信息

  • 总下载量: 190
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 21
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 21
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: PHP-3.01
  • 更新时间: 2013-04-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固