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

ActiveLibrary[Caching](/categories/caching)

swoft/cache
===========

Cache Component for Swoft

v2.0.3(5y ago)676.1k—0%63Apache-2.0PHP

Since Mar 5Pushed 5y ago5 watchersCompare

[ Source](https://github.com/swoft-cloud/swoft-cache)[ Packagist](https://packagist.org/packages/swoft/cache)[ RSS](/packages/swoft-cache/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (5)Versions (11)Used By (3)

Swoft Cache
===========

[](#swoft-cache)

[![Latest Stable Version](https://camo.githubusercontent.com/aafe4bcbbf5c184b5cddd2f3cca6f15304b3583ca93395e24c78523fa7995387/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73776f66742f63616368652e737667)](https://packagist.org/packages/swoft/cache)[![Php Version](https://camo.githubusercontent.com/c197ef1e57a32c886b2a54d02ead7dbc035f18b3f39a642703b9372eef7819f9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d2533453d372e312d627269676874677265656e2e7376673f6d61784167653d32353932303030)](https://secure.php.net/)[![Swoft Doc](https://camo.githubusercontent.com/ea1431167b522b88916c717b0bfe6348328a8662a684bb128f0b0bd6d22a20d5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63732d70617373696e672d677265656e2e7376673f6d61784167653d32353932303030)](https://www.swoft.org/docs)[![Swoft License](https://camo.githubusercontent.com/1c419f89412ea6c234c184ad6d85decb127c18584858d3707ae7d8e2131eccc4/68747470733a2f2f696d672e736869656c64732e696f2f686578706d2f6c2f706c75672e7376673f6d61784167653d32353932303030)](https://github.com/swoft-cloud/swoft/blob/master/LICENSE)

Swoft Cache Component

Install
-------

[](#install)

- composer command

```
composer require swoft/cache
```

Resources
---------

[](#resources)

- [Documentation](https://swoft.org/docs)
- [Contributing](https://github.com/swoft-cloud/swoft/blob/master/CONTRIBUTING.md)
- [Report Issues](https://github.com/swoft-cloud/swoft/issues) and [Send Pull Requests](https://github.com/swoft-cloud/swoft-component/pulls) in the [Main Swoft Repository](https://github.com/swoft-cloud/swoft)

LICENSE
-------

[](#license)

The Component is open-sourced software licensed under the [Apache license](LICENSE).

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~186 days

Total

9

Last Release

2091d ago

Major Versions

1.x-dev → v2.0.02019-12-01

### Community

Maintainers

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

---

Top Contributors

[![stelin](https://avatars.githubusercontent.com/u/1677543?v=4)](https://github.com/stelin "stelin (19 commits)")[![inhere](https://avatars.githubusercontent.com/u/5302062?v=4)](https://github.com/inhere "inhere (16 commits)")[![huangzhhui](https://avatars.githubusercontent.com/u/12077148?v=4)](https://github.com/huangzhhui "huangzhhui (13 commits)")[![daydaygo](https://avatars.githubusercontent.com/u/3986303?v=4)](https://github.com/daydaygo "daydaygo (1 commits)")[![janartist](https://avatars.githubusercontent.com/u/15192564?v=4)](https://github.com/janartist "janartist (1 commits)")[![limingxinleo](https://avatars.githubusercontent.com/u/16648551?v=4)](https://github.com/limingxinleo "limingxinleo (1 commits)")[![he19920226he](https://avatars.githubusercontent.com/u/13690842?v=4)](https://github.com/he19920226he "he19920226he (1 commits)")

---

Tags

cachephppsr-16swoftswoolephpcachesimple-cachepsr-16swooleswoft

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[sabre/cache

Simple cache abstraction layer implementing PSR-16

541.2M3](/packages/sabre-cache)[voku/simple-cache

Simple Cache library

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

PHPackages © 2026

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