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

ActiveCakephp-plugin[Caching](/categories/caching)

traackr/cache-engines
=====================

CakePHP Cache Engines

0.3.7(1y ago)358.5k[1 PRs](https://github.com/Traackr/cakephp-cache-engines/pulls)PHPPHP &gt;=5.3

Since Mar 12Pushed 1y ago17 watchersCompare

[ Source](https://github.com/Traackr/cakephp-cache-engines)[ Packagist](https://packagist.org/packages/traackr/cache-engines)[ Docs](https://traackr.com/)[ RSS](/packages/traackr-cache-engines/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (5)Versions (20)Used By (0)

CakePHP Cache Engines
=====================

[](#cakephp-cache-engines)

[![Build Status](https://camo.githubusercontent.com/500008d6ae028efff0a3c4005d3ad55356f5c8b71798b9468e98568b60aee9e4/68747470733a2f2f6170692e7472617669732d63692e6f72672f54726161636b722f63616b657068702d63616368652d656e67696e65732e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/Traackr/cakephp-cache-engines)

This CakePHP plugin provides some additional cache engines that can be used by CakePHP.

We currently provide three cache engines:

1. RedisTreeCacheEngine: Redis based cache that supports managing keys using wildcards and cache key 'parents'.
2. FileTreeCacheEngine: Local filesystem based cache that supports managing keys using wildcards and cache key 'parents'.
3. FallBackCacheEngine: Allows you to define two cache engines; the first engine is used as the primary cache engine. The second cache engine is used only if the primary fails.

\##Installation

```
$ cd /path/to/cake/application/app
$ composer require traackr/cache-engines
$ composer update
```

\##Configuring the Engines

To configure and use these cache engines, simply specify the cache engine name in the appropriate configuration file (this is typically `app/Config/bootstrap.php`, c.f., [CakePHP cache configuration documentation](http://book.cakephp.org/2.0/en/core-libraries/caching.html#configuring-cache-class)). The `RedisTreeeEngine` and `FileTreeEngine` take the same arguments as the `RedisEngine` and `FileEngine` that ship with CakePHP:

```
Cache::config("post_data", array(
   'engine' => 'RedisTree',
   'server' => 'redis-server',
   'port' => 6379,
   'duration' => 300,
   'prefix' => 'posts:'
));

```

`FallbackEngine` expects a configuration for the primary and secondary engines:

```
Cache::config("post_data", array(
   'engine' => 'Fallback',
   'name' => "post_data",
   'primary' => array(
      'profile' => '2.8', // optional, if you want to hardcode a predis profile to use
      'engine' => 'RedisTree',
      'server' => 'redis-server',
      'port' => 6379,
      'duration' => 300,
      'prefix' => 'posts:'
   ),
   'secondary' => array(
      // alternate cache if Redis fails
      'engine' => 'FileTree',
      'path' => CACHE.'/data/',
      'duration' => 300
   )
));

```

\##Documentation

All other documentation can be found in the [doc](https://github.com/Traackr/cakephp-cache-engines/blob/master/doc) folder.

\##Contributing

- [Getting Started](https://github.com/Traackr/cakephp-cache-engines/blob/master/doc/CONTRIBUTING.md)
- [Bug Reports](https://github.com/Traackr/cakephp-cache-engines/blob/master/doc/CONTRIBUTING.md#bug-reports)
- [Feature Requests](https://github.com/Traackr/cakephp-cache-engines/blob/master/doc/CONTRIBUTING.md#feature-requests)
- [Pull Requests](https://github.com/Traackr/cakephp-cache-engines/blob/master/doc/CONTRIBUTING.md#pull-requests)

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance44

Moderate activity, may be stable

Popularity31

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~388 days

Total

11

Last Release

439d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/696635?v=4)[David Chancogne](/maintainers/dchancogne)[@dchancogne](https://github.com/dchancogne)

---

Top Contributors

[![dchancogne](https://avatars.githubusercontent.com/u/696635?v=4)](https://github.com/dchancogne "dchancogne (24 commits)")[![rajivraman](https://avatars.githubusercontent.com/u/2066344?v=4)](https://github.com/rajivraman "rajivraman (20 commits)")[![jec3](https://avatars.githubusercontent.com/u/6944267?v=4)](https://github.com/jec3 "jec3 (6 commits)")[![elijahsummers](https://avatars.githubusercontent.com/u/1902485?v=4)](https://github.com/elijahsummers "elijahsummers (2 commits)")[![sprak3000](https://avatars.githubusercontent.com/u/5545555?v=4)](https://github.com/sprak3000 "sprak3000 (2 commits)")

---

Tags

cakephpcachetraackrcache engine

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[wp-media/wp-rocket

Performance optimization plugin for WordPress

7431.3M3](/packages/wp-media-wp-rocket)[cache/predis-adapter

A PSR-6 cache implementation using Redis (Predis). This implementation supports tags

272.6M13](/packages/cache-predis-adapter)[sobstel/metaphore

PHP cache slam defense using a semaphore to prevent dogpile effect (aka clobbering updates or stampending herd).

100179.4k1](/packages/sobstel-metaphore)[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.

23817.0k1](/packages/rtcamp-nginx-helper)[contributte/redis

Redis client integration into Nette framework

181.6M2](/packages/contributte-redis)[rarst/fragment-cache

WordPress plugin for partial and async caching of heavy front-end elements.

14115.0k2](/packages/rarst-fragment-cache)

PHPackages © 2026

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