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
=============

2.0.0(1w ago)030MITPHPPHP &gt;=5.6

Since Jun 21Pushed 1w ago1 watchersCompare

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

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

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

[](#colaphp-redis)

概述
--

[](#概述)

redis 库

依赖
--

[](#依赖)

- `predis/predis`

使用
--

[](#使用)

```
$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
...
```

更新说明
----

[](#更新说明)

版本更新日期说明v2.0.02026.06.21重构v1.0.02021.07.30基本功能

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance98

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

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

Total

4

Last Release

12d ago

Major Versions

1.0.2 → 2.0.02026-06-21

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 (4 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

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

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

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

swoft redis component

12171.1k17](/packages/swoft-redis)

PHPackages © 2026

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