PHPackages                             maximebf/cachecache - 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. maximebf/cachecache

AbandonedArchivedLibrary[Caching](/categories/caching)

maximebf/cachecache
===================

Caching library for PHP5.3

1.0.2(12y ago)49144.0k↓21.4%9[1 issues](https://github.com/maximebf/CacheCache/issues)2MITPHPPHP &gt;=5.3.0

Since Aug 18Pushed 12y ago4 watchersCompare

[ Source](https://github.com/maximebf/CacheCache)[ Packagist](https://packagist.org/packages/maximebf/cachecache)[ Docs](https://github.com/maximebf/CacheCache)[ RSS](/packages/maximebf-cachecache/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (2)

CacheCache
==========

[](#cachecache)

Caching framework for PHP 5.3+

[![Build Status](https://camo.githubusercontent.com/a59bac481da87aa36d480473956b3326f76df0624e61a2a2846ee70dcdafbaa6/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6d6178696d6562662f436163686543616368652e706e67)](http://travis-ci.org/maximebf/CacheCache)

Features:

- Easy retreival and storing of key, value pairs using the many available methods
- Cache function calls
- Available object wrapper to cache calls to methods
- Pipelines ala Predis (see below)
- Namespaces
- TTL variations to avoid all caches to expire at the same time
- Multiple backends support (apc, file, memcache(d), memory, redis, session)
- [Monolog](https://github.com/Seldaek/monolog) support
- Very well documented

CacheCache features are exposed through a Cache object which itself uses backends to store the data. Multiple instances of Cache objects can be managed using the CacheManager.

Full documentation at

Examples:

```
$cache = new CacheCache\Cache(new CacheCache\Backends\Memory());

if (($foo = $cache->get('foo')) === null) {
    $foo = 'bar';
    $cache->set('foo', $foo);
}

if (!$cache->start('foo')) {
    echo "bar\n";
    $cache->end();
}

$cache->call('sleep', array(2));
$cache->call('sleep', array(2)); // won't sleep!

$r = $cache->pipeline(function($pipe) {
    $pipe->set('foo', 'bar');
    $pipe->set('bar', 'foo');
    $pipe->get('foo');
    $pipe->set('foo', 'foobar');
    $pipe->get('foo');
});

```

More examples in [examples/](https://github.com/maximebf/CacheCache/tree/master/examples)

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity43

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87% 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 ~359 days

Total

2

Last Release

4662d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9f4245e71c37880b2993d787844f7ea169f81fe7e0a760e24354e5e8d973c5fb?d=identicon)[maximebf](/maintainers/maximebf)

---

Top Contributors

[![maximebf](https://avatars.githubusercontent.com/u/305740?v=4)](https://github.com/maximebf "maximebf (20 commits)")[![camspiers](https://avatars.githubusercontent.com/u/51294?v=4)](https://github.com/camspiers "camspiers (2 commits)")[![khromov](https://avatars.githubusercontent.com/u/1207507?v=4)](https://github.com/khromov "khromov (1 commits)")

---

Tags

cache

### Embed Badge

![Health badge](/badges/maximebf-cachecache/health.svg)

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

###  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

33313.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)
