PHPackages                             srun/redis - 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. srun/redis

ActiveLibrary[Caching](/categories/caching)

srun/redis
==========

将redis协议返回的hash做响应相应处理

v1.0.0(2y ago)08MITPHP

Since Apr 23Pushed 2y ago1 watchersCompare

[ Source](https://github.com/srunsoft/redis)[ Packagist](https://packagist.org/packages/srun/redis)[ RSS](/packages/srun-redis/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

srun/redis
==========

[](#srunredis)

`srun/redis` 是一个基于 `yii2-redis` 的 Redis 连接扩展包，用于处理 Redis 操作的返回值。

特性
--

[](#特性)

- 处理 hash 插入时传递数组问题。
- 自动将 `HGETALL` 命令返回的数组转换为键值对的关联数组。

安装
--

[](#安装)

要安装此包，请在项目的根目录下运行以下命令：

```
composer require srun/redis
```

配置
--

[](#配置)

将项目中`\yii\redis\Connection` 替换为 `\srun\redis\Connection`

```
use srun/redis/Connection
```

### IDE 识别

[](#ide-识别)

```
/**
 * @property srun\redis\Connection $redisOnline
 */
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

Unknown

Total

1

Last Release

742d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/32881584b4218be963ef7863b7b35de612c2c6e934ef945091fbf18f6c06e51e?d=identicon)[liwenyu](/maintainers/liwenyu)

---

Top Contributors

[![dot-xiaoyuan](https://avatars.githubusercontent.com/u/53287231?v=4)](https://github.com/dot-xiaoyuan "dot-xiaoyuan (9 commits)")

### Embed Badge

![Health badge](/badges/srun-redis/health.svg)

```
[![Health](https://phpackages.com/badges/srun-redis/health.svg)](https://phpackages.com/packages/srun-redis)
```

###  Alternatives

[pyurin/yii2-redis-ha

Basic redis-ha client

18272.7k](/packages/pyurin-yii2-redis-ha)

PHPackages © 2026

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