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

ActiveProject[Caching](/categories/caching)

badtomcat/cache
===============

缓存组件

v0.0.1(8y ago)0611MITPHPPHP &gt;=5.4.0

Since Dec 20Pushed 8y agoCompare

[ Source](https://github.com/badtomcat/cache)[ Packagist](https://packagist.org/packages/badtomcat/cache)[ Docs](https://github.com/badtomcat/cache)[ RSS](/packages/badtomcat-cache/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (1)

配置
==

[](#配置)

Cache组件

\##开始使用

\####安装组件 使用 composer 命令进行安装或下载源代码使用。

> composer require badtomcat/cache

```
$cache = new Badtomcat\Cache\FileCache(__DIR__."/cache");
$cache->set('key', 'taw');
$this->assertEquals($cache->get('key'), 'taw');
$cache->set('balabala', 'balabala',1);
$this->assertEquals($cache->get('balabala'), 'balabala');
sleep(2);
$this->assertEquals($cache->get('balabala'), null);
$cache->flush();
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

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

Unknown

Total

1

Last Release

3116d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

cachebadtomcat

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[psr/simple-cache

Common interfaces for simple caching

8.1k772.9M2.7k](/packages/psr-simple-cache)[psr/cache

Common interface for caching libraries

5.2k726.4M1.7k](/packages/psr-cache)[react/cache

Async, Promise-based cache interface for ReactPHP

445131.2M46](/packages/react-cache)[beste/in-memory-cache

A PSR-6 In-Memory cache that can be used as a fallback implementation and/or in tests.

2515.9M12](/packages/beste-in-memory-cache)[fastd/fastd

A High Performance API Framework By Swoole Extension

42015.5k18](/packages/fastd-fastd)[anahkiasen/flatten

A package for the Illuminate framework that flattens pages to plain HTML

33113.0k](/packages/anahkiasen-flatten)

PHPackages © 2026

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