PHPackages                             cdyun/webman-cache - 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. cdyun/webman-cache

ActiveLibrary[Caching](/categories/caching)

cdyun/webman-cache
==================

Webman plugin cdyun/webman-cache

v1.0.2(7mo ago)02MITPHPPHP ^8.1

Since Sep 23Pushed 6mo agoCompare

[ Source](https://github.com/cdyun303/webman-cache)[ Packagist](https://packagist.org/packages/cdyun/webman-cache)[ RSS](/packages/cdyun-webman-cache/feed)WikiDiscussions main Synced 1mo ago

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

PHP开发常用的方法集合
============

[](#php开发常用的方法集合)

基于Think-Cache 的封装，增加了协程和连接池支持，同时支持webman非协程环境。 本缓存只支持redis和文件驱动。

### 安装

[](#安装)

```
composer require cdyun/webman-cache

```

### 基础Cache类

[](#基础cache类)

- 提供的接口参考think-cache

```
use Cdyun\WebmanCache\Cache;
```

### 基于基础Cache封装的CacheEnforcer类

[](#基于基础cache封装的cacheenforcer类)

- 增加了全局默认参数配置（默认全局标签、默认过期时间）
- 保留默认缓存驱动接口，同时增加了单独的redis缓存接口

```
use Cdyun\WebmanCache\CacheEnforcer;

方法：setRedis、getRedis、delRedis、clearRedis、hasRedis
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance64

Regular maintenance activity

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

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

Total

2

Last Release

236d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/743ffd5ad49f71554f068efde387da76b1a14f3cfd608928fc6c881d3dd22dfb?d=identicon)[clrainy](/maintainers/clrainy)

---

Top Contributors

[![cdyun303](https://avatars.githubusercontent.com/u/146640329?v=4)](https://github.com/cdyun303 "cdyun303 (5 commits)")

---

Tags

phpcachewebmancdyun

### Embed Badge

![Health badge](/badges/cdyun-webman-cache/health.svg)

```
[![Health](https://phpackages.com/badges/cdyun-webman-cache/health.svg)](https://phpackages.com/packages/cdyun-webman-cache)
```

###  Alternatives

[voku/simple-cache

Simple Cache library

322.5M7](/packages/voku-simple-cache)

PHPackages © 2026

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