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

ActiveLibrary[Caching](/categories/caching)

fivepercent/cache
=================

Cache system

v1.0(10y ago)11.9k17MITPHPPHP &gt;=5.4

Since Jun 4Pushed 10y ago6 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (7)

Cache system
============

[](#cache-system)

With this package you can cache any data in any storage.

Installation
------------

[](#installation)

Add **FivePercent/Cache** in your composer.json:

```
{
    "require": {
        "fivepercent/cache": "~1.0"
    }
}
```

Now tell composer to download the library by running the command:

```
$ php composer.phar update fivepercent/cache
```

Basic usage
-----------

[](#basic-usage)

Available storage:

1. **ArrayCache**Cache data in internal array. Will be destroyed after ended script.
2. **RedisCache**Cache data in Redis storage. Store data in HASH type.
3. **ChainCache**
4. **NullCache**

Examples:

```
use FivePercent\Component\Cache\ArrayCache;

$cache = new ArrayCache();

if (!$cache->has('my_key')) {
    $cache->set('my_key', 'My Value');
}

print $cache->get('my_key'); // Printing "My Value"
```

Symfony2
--------

[](#symfony2)

If you use Symfony2 Framework, you can use **CacheClearer** for clear cache.

Symfony2 ExpressionLanguage
---------------------------

[](#symfony2-expressionlanguage)

If you use ExpressionLanguage (Symfony Component), you can use **ParserCache** for store ExpressionLanguage expression.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity58

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

4002d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/16cc6c4d32a2c7f1cd584f31db9428341ad57682521f0f6e607cfe19f1f9157d?d=identicon)[inno-group](/maintainers/inno-group)

---

Top Contributors

[![ZhukV](https://avatars.githubusercontent.com/u/2256109?v=4)](https://github.com/ZhukV "ZhukV (1 commits)")

---

Tags

cache

### Embed Badge

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

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

###  Alternatives

[psr/simple-cache

Common interfaces for simple caching

8.1k727.3M2.1k](/packages/psr-simple-cache)[psr/cache

Common interface for caching libraries

5.2k686.9M1.3k](/packages/psr-cache)[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/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.

2512.2M6](/packages/beste-in-memory-cache)[anahkiasen/flatten

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

33113.0k](/packages/anahkiasen-flatten)[rtcamp/nginx-helper

Cleans nginx's fastcgi/proxy cache or redis-cache whenever a post is edited/published. Also provides cloudflare edge cache purging with Cache-Tags.

23517.0k1](/packages/rtcamp-nginx-helper)

PHPackages © 2026

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