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

ActiveLibrary[Caching](/categories/caching)

cdyun/thinkphp-cache
====================

TP plugin cdyun/thinkphp-cache

v1.0.1(6mo ago)0482MITPHPPHP ^8.1

Since Nov 2Pushed 6mo agoCompare

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

READMEChangelog (1)DependenciesVersions (2)Used By (2)

Thinkphp-Cache
==============

[](#thinkphp-cache)

基于TP Cache 的封装，本缓存只支持redis和file驱动。

### 安装

[](#安装)

```
composer require cdyun/thinkphp-cache

```

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

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

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

```
use Cdyun\ThinkphpCache\CacheEnforcer;

file方法：set、get、delete、clear、has、handler
redis方法：setRedis、getRedis、delRedis、clearRedis、hasRedis、redisHandler
```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance66

Regular maintenance activity

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity44

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

197d 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 (2 commits)")

---

Tags

phpcachethinkphpcdyun

### Embed Badge

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

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

###  Alternatives

[awssat/laravel-visits

Laravel Redis visits counter for Eloquent models

975163.6k2](/packages/awssat-laravel-visits)[swayok/alternative-laravel-cache

Replacements for Laravel's redis and file cache stores that properly implement tagging idea. Powered by cache pool implementations provided by http://www.php-cache.com/

202541.1k6](/packages/swayok-alternative-laravel-cache)[eftec/cacheone

A Cache library with minimum dependency

103.5k4](/packages/eftec-cacheone)

PHPackages © 2026

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