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

AbandonedArchivedLibrary[Caching](/categories/caching)

zodyac/cache
============

Caching library with support for multiple cache backends

v0.1.2(12y ago)01231NCSAPHPPHP &gt;=5.3.2

Since Aug 4Pushed 12y ago18 watchersCompare

[ Source](https://github.com/jadu/Cache)[ Packagist](https://packagist.org/packages/zodyac/cache)[ Docs](http://jadu.github.io)[ RSS](/packages/zodyac-cache/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (4)Used By (1)

Zodyac Cache
============

[](#zodyac-cache)

Caching library with a unified interface for multiple backends

[![Latest Stable Version](https://camo.githubusercontent.com/8e46925b8e2b08f1ba15daa8c1ea5353bc46e8d9f432236ede572242a8b98f20/68747470733a2f2f706f7365722e707567782e6f72672f7a6f647961632f63616368652f762f737461626c652e706e67)](https://packagist.org/packages/zodyac/cache) [![Build Status](https://camo.githubusercontent.com/d780e38e95a545c1ff1b0bbffe751b9202042fdf48eda234b5a2dc8b4424016f/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6a6164752f43616368652e706e67)](http://travis-ci.org/jadu/Cache)

Usage
-----

[](#usage)

```
use Zodyac\Cache\Cache;
use Zodyac\Cache\Storage\ApcStorage;

$cache = new Cache(new ApcStorage());
$result = $cache->get('key');
if ($result->isMiss()) {
    $value = expensiveOperation(42);
    $cache->set('key', $value);
}
```

Backends
--------

[](#backends)

### Memcached

[](#memcached)

### APC

[](#apc)

Doctrine cache bridge
---------------------

[](#doctrine-cache-bridge)

Use the your `Zodyac\Cache\Cache` instance as a Doctrine Cache with `Zodyac\Cache\DoctrineCache`. This is useful when you want to use Zodyac Cache for metadata, query or result caching in [Doctrine ORM](http://github.com/doctrine/orm).

```
use Zodyac\Cache\Cache;
use Zodyac\Cache\DoctrineCache;
use Zodyac\Cache\Storage\ApcStorage;

$cache = new Cache(new ApcStorage());
$doctrineCache = new DoctrineCache($cache);
$value = $doctrineCache->doFetch('key');
```

Credits
-------

[](#credits)

- [Tom Graham](http://github.com/noginn) - Project lead

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community13

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

Total

3

Last Release

4674d ago

### Community

Maintainers

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

---

Top Contributors

[![noginn](https://avatars.githubusercontent.com/u/6932?v=4)](https://github.com/noginn "noginn (8 commits)")

---

Tags

cachememcached

### Embed Badge

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

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

###  Alternatives

[symfony/cache

Provides extended PSR-6, PSR-16 (and tags) implementations

4.2k373.5M3.2k](/packages/symfony-cache)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[tedivm/stash

The place to keep your cache.

9614.9M128](/packages/tedivm-stash)[tedivm/stash-bundle

Incorporates the Stash caching library into Symfony.

871.4M16](/packages/tedivm-stash-bundle)[sabre/cache

Simple cache abstraction layer implementing PSR-16

551.3M5](/packages/sabre-cache)[cache/memcached-adapter

A PSR-6 cache implementation using Memcached. This implementation supports tags

182.0M15](/packages/cache-memcached-adapter)

PHPackages © 2026

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