PHPackages                             easyswoole/fast-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. [Framework](/categories/framework)
4. /
5. easyswoole/fast-cache

ActiveLibrary[Framework](/categories/framework)

easyswoole/fast-cache
=====================

An efficient swoole framework

2.0.1(4y ago)1030.3k↑237.5%6[3 issues](https://github.com/easy-swoole/fast-cache/issues)Apache-2.0PHPPHP &gt;=7.1.0

Since Dec 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/easy-swoole/fast-cache)[ Packagist](https://packagist.org/packages/easyswoole/fast-cache)[ Docs](https://www.easyswoole.com/)[ RSS](/packages/easyswoole-fast-cache/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (4)Versions (26)Used By (0)

FastCache
=========

[](#fastcache)

EasySwoole FastCache组件通过新开进程,使用SplArray存储,unix sock 高速通信方式,实现了多进程共享数据.

### 示例代码

[](#示例代码)

```
use EasySwoole\FastCache\Cache;

require 'vendor/autoload.php';

$http = new swoole_http_server("127.0.0.1", 9501);

Cache::getInstance()->attachToServer($http);

$http->on("request", function ($request, $response) {
    $res = Cache::getInstance()->set('easyswoole', 'easyswoole');
    var_dump($res);
    $res = Cache::getInstance()->get('easyswoole');
    $response->end($res);
});

$http->start();
```

内存问题
----

[](#内存问题)

数据分散在进程内，一个进程可能需要占用很大的内存，因此请根据实际业务量配置内存大小。

单元测试
----

[](#单元测试)

### 服务启动

[](#服务启动)

```
php example.php
```

### 执行测试用例

[](#执行测试用例)

```
 php vendor/bin/co-phpunit tests

```

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance23

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 61.2% 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 ~37 days

Recently: every ~151 days

Total

25

Last Release

1743d ago

Major Versions

1.3.1 → 2.0.02020-12-25

1.x-dev → 2.0.12021-06-15

### Community

Maintainers

![](https://www.gravatar.com/avatar/45c234d5f129ea570e630425636299127647534f0c2cbb073555e2c45d403d6f?d=identicon)[kiss291323003](/maintainers/kiss291323003)

---

Top Contributors

[![kiss291323003](https://avatars.githubusercontent.com/u/24490609?v=4)](https://github.com/kiss291323003 "kiss291323003 (60 commits)")[![xuanyanwow](https://avatars.githubusercontent.com/u/28777109?v=4)](https://github.com/xuanyanwow "xuanyanwow (13 commits)")[![Player626](https://avatars.githubusercontent.com/u/44792981?v=4)](https://github.com/Player626 "Player626 (10 commits)")[![huizhang001](https://avatars.githubusercontent.com/u/26496638?v=4)](https://github.com/huizhang001 "huizhang001 (6 commits)")[![LuffyQAQ](https://avatars.githubusercontent.com/u/35624300?v=4)](https://github.com/LuffyQAQ "LuffyQAQ (4 commits)")[![evalor](https://avatars.githubusercontent.com/u/26944445?v=4)](https://github.com/evalor "evalor (4 commits)")[![XueSiLf](https://avatars.githubusercontent.com/u/31389659?v=4)](https://github.com/XueSiLf "XueSiLf (1 commits)")

---

Tags

asyncframeworkswooleeasyswoole

### Embed Badge

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

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

###  Alternatives

[easyswoole/easyswoole

An efficient swoole framework

4.8k185.9k46](/packages/easyswoole-easyswoole)[easyswoole/rpc

An efficient swoole framework

7731.0k2](/packages/easyswoole-rpc)[easyswoole/kafka

An efficient swoole framework

4211.1k](/packages/easyswoole-kafka)[easyswoole/actor

easyswoole component

1410.3k](/packages/easyswoole-actor)[easyswoole/words-match

An efficient swoole framework

171.5k2](/packages/easyswoole-words-match)

PHPackages © 2026

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