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

ActiveYii2-extension[Caching](/categories/caching)

yii2-cmslib/redis
=================

Redis class, For yii2 extention. Support multiple configuration.

2.6.5(8y ago)340[1 issues](https://github.com/cunwang/yii2-cmslib/issues)BSD-3-ClausePHP

Since Nov 28Pushed 8y ago2 watchersCompare

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

READMEChangelogDependencies (1)Versions (5)Used By (0)

yii2-cmslib
-----------

[](#yii2-cmslib)

### `2015/12/02 add file Redis.php`

[](#20151202-add-file-redisphp)

> usage: echo &lt;&lt;&lt; EOT

```
use \Yii2cms\lib\RedisClass;

$redis=RedisClass::getInstance();
//$redis=RedisClass::getInstance('cms_slave');
//$redis=RedisClass::getInstance('msgque_slave');

var_dump($redis);
var_dump($redis->get($key));

```

> EOT

#### `[notes]`

[](#notes)

Yii2中Redis配置文件格式 `(\Yii::$app->params['redis'])` 如下：

```
$redisCon   = [
	'msgque_master' => [
		'host'  => '10.15.209.110',
		'port'  => '6379'
	],
	'msgque_slave'  => [
		'host'  => '10.15.209.119',
		'port'  => '6379'
	],
	....
];

```

over

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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 ~194 days

Total

4

Last Release

3232d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e5f7cb8f301a6dfd63d8b91aaf3dcce3b1e9ecaf1ef7ae7021d4d9c02f120525?d=identicon)[cunwang](/maintainers/cunwang)

---

Top Contributors

[![cunwang](https://avatars.githubusercontent.com/u/6813628?v=4)](https://github.com/cunwang "cunwang (21 commits)")

---

Tags

redisyii2extensionmultiple

### Embed Badge

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

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

###  Alternatives

[bazilio/yii2-async

Provides translucent api for moving large tasks out of request context

6248.8k2](/packages/bazilio-yii2-async)[undefinedor/yii2-cached-active-record

The cached activeRecord for the Yii2 framework

102.6k](/packages/undefinedor-yii2-cached-active-record)

PHPackages © 2026

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