PHPackages                             wenhainan/filecache - 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. wenhainan/filecache

ActiveLibrary[Caching](/categories/caching)

wenhainan/filecache
===================

Lightweight filecache 轻量级的文件缓存

1.0.7(2y ago)224Apache-2.0PHPPHP &gt;=5.6.0

Since Mar 30Pushed 2y ago1 watchersCompare

[ Source](https://github.com/wenhainan/filecache)[ Packagist](https://packagist.org/packages/wenhainan/filecache)[ Docs](https://github.com/wenhainan/filecache)[ RSS](/packages/wenhainan-filecache/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (9)Used By (0)

filecache
---------

[](#filecache)

- 轻量级,无依赖的本地文件缓存扩展

安装
--

[](#安装)

```
composer require  wenhainan/filecache
```

如何使用
----

[](#如何使用)

```
use wenhainan\filecache;
//config. it has a default config.
$cache = new filecache();
//设置缓存 set key cache
$cache->set('key','value',60);   //set key = value  expire = 60s
//获取缓存  get key cache
$cache->get('key');
//删除缓存  delete cache
$cache->del('key');
```

自定义配置
-----

[](#自定义配置)

```
//自定义缓存配置
$config = [
    'expire'=>3600,  //expire time , unit seconds  默认缓存时间，单位秒
    'path' =>'/tmp'  //self dir
];
$cache = new filecache($config);
```

配置要求
----

[](#配置要求)

- PHP 5.6+

###  Health Score

24

—

LowBetter than 30% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Recently: every ~196 days

Total

8

Last Release

820d ago

### Community

Maintainers

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

---

Top Contributors

[![wenhainan](https://avatars.githubusercontent.com/u/13266281?v=4)](https://github.com/wenhainan "wenhainan (11 commits)")

### Embed Badge

![Health badge](/badges/wenhainan-filecache/health.svg)

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

###  Alternatives

[iazaran/smart-cache

Smart Cache is a caching optimization package designed to enhance the way your Laravel application handles data caching. It intelligently manages large data sets by compressing, chunking, or applying other optimization strategies to keep your application performant and efficient.

21114.2k](/packages/iazaran-smart-cache)[phpfastcache/phpssdb

PHP SSDB Driver for phpFastCache

14736.9k1](/packages/phpfastcache-phpssdb)[rapidwebltd/rw-file-cache

RW File Cache is a PHP File-based Caching Library. Its syntax is designed to closely resemble the PHP memcache extension.

15196.8k7](/packages/rapidwebltd-rw-file-cache)[yuzuru-s/redis-recommend

Wrapping Redis's sorted set APIs for specializing recommending operations.

392.9k](/packages/yuzuru-s-redis-recommend)[ichhabrecht/intcache

Turn uncachable page objects into cacheable links

193.9k](/packages/ichhabrecht-intcache)

PHPackages © 2026

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