PHPackages                             oh-my-gold/redis-helper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. oh-my-gold/redis-helper

ActiveLibrary[Caching](/categories/caching)

oh-my-gold/redis-helper
=======================

redis helper

v1.0.01(4mo ago)0252MITPHPPHP ^7.4|^8.0|^8.1|^8.2|^8.3

Since Mar 21Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/oh-my-gold/redis-helper)[ Packagist](https://packagist.org/packages/oh-my-gold/redis-helper)[ RSS](/packages/oh-my-gold-redis-helper/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (4)DependenciesVersions (8)Used By (0)

REDIS使用规范
=========

[](#redis使用规范)

规范
--

[](#规范)

1. 统一模块管理,方便追踪与重构

用法
--

[](#用法)

1. 继承基类 [BaseRdbModel.php](BaseRdbModel.php)

```
class TestRdbModel extends BaseRdbModel{}
```

2. 引入相应REDIS类型特征，如HASH类型 [HashTrait.php](RdbTrait/HashTrait.php)

```
class TestRdbModel extends BaseRdbModel{
    use RdbTrait\HashTrait;
}
```

3. 设置必要参数

```
class TestRdbModel extends BaseRdbModel{

    /**
     * 连接配置
     * @var string|array
     */
    protected $connect = 'queue';

    /**
     * 键值名前缀 必须
     * @var string
     */
    protected $keyNamePre = 'Demo:TestHash:';

    /**
     * 过期时间 必须
     * int 固定过期时间设定
     * [int, int] 范围时间内随机过期时间设定
     * @var int|int[]
     */
    protected $expireRange = 60;

    use RdbTrait\HashTrait;
}
```

4. 使用 在需要的地方直接调用即可,IDEA会自动提示，如下

```
$rdb_model = new TestRdbModel();
$rdb_model->hSet('key', 'value');
$rdb_model->hGet('key');
$rdb_model->hDel('key');
$rdb_model->hGetAll('key');
```

###  Health Score

44

—

FairBetter than 91% of packages

Maintenance84

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~105 days

Total

4

Last Release

146d ago

Major Versions

v0.9.01 → v1.0.02026-01-09

PHP version history (2 changes)v0.9.01PHP ^7.4

v1.0.0PHP ^7.4|^8.0|^8.1|^8.2|^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/29423082?v=4)[uukule](/maintainers/uukule)[@uukule](https://github.com/uukule)

---

Top Contributors

[![oh-my-gold](https://avatars.githubusercontent.com/u/201987941?v=4)](https://github.com/oh-my-gold "oh-my-gold (3 commits)")

### Embed Badge

![Health badge](/badges/oh-my-gold-redis-helper/health.svg)

```
[![Health](https://phpackages.com/badges/oh-my-gold-redis-helper/health.svg)](https://phpackages.com/packages/oh-my-gold-redis-helper)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
