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

ActiveLibrary[Caching](/categories/caching)

colaphp/redis
=============

1.0.2(4y ago)027MITPHPPHP &gt;=5.6

Since Jul 30Pushed 4y ago1 watchersCompare

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

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

colaphp-redis
=============

[](#colaphp-redis)

版本^1.0

require predis/predis
=====================

[](#require-predispredis)

```
$servers = [
	'default' => [
		'host' => '192.168.0.1',
		'port' => 6379,
		'database' => 1,
	],
	'options' => [
        'cluster' => 'redis'
    ],
	'cluster' => false,//分布式配置
];

//实例
$RedisDb = new \Colaphp\Redis\RedisDb($servers);
$RedisStore =  new \Colaphp\Redis\RedisStore($RedisDb, 'prefix', 'default');
//也可直接用助手函数
$RedisStore = getRedis('prefix', 'default', $servers);

//调用
$RedisStore->get
$RedisStore->put
...
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Total

3

Last Release

1740d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.6.40

1.0.1PHP &gt;=5.6

### Community

Maintainers

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

---

Top Contributors

[![nydia87](https://avatars.githubusercontent.com/u/11849800?v=4)](https://github.com/nydia87 "nydia87 (2 commits)")

---

Tags

phprediscolaphp

### Embed Badge

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

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

###  Alternatives

[awssat/laravel-visits

Laravel Redis visits counter for Eloquent models

975163.6k2](/packages/awssat-laravel-visits)[mjphaynes/php-resque

Redis backed library for creating background jobs and processing them later.

228199.3k2](/packages/mjphaynes-php-resque)[swoft/redis

swoft redis component

12168.4k16](/packages/swoft-redis)[eftec/cacheone

A Cache library with minimum dependency

103.5k4](/packages/eftec-cacheone)

PHPackages © 2026

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