PHPackages                             kalaspuff/redis-cache-zend-framework - 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. kalaspuff/redis-cache-zend-framework

ActiveLibrary[Caching](/categories/caching)

kalaspuff/redis-cache-zend-framework
====================================

Redis cache backend for Zend Framework

4353.7k—2.2%30[5 issues](https://github.com/kalaspuff/redis-cache-zend-framework/issues)[1 PRs](https://github.com/kalaspuff/redis-cache-zend-framework/pulls)PHP

Since Jul 7Pushed 7y ago8 watchersCompare

[ Source](https://github.com/kalaspuff/redis-cache-zend-framework)[ Packagist](https://packagist.org/packages/kalaspuff/redis-cache-zend-framework)[ RSS](/packages/kalaspuff-redis-cache-zend-framework/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Redis cache backend for Zend Framework by Carl Oscar Aaro
=========================================================

[](#redis-cache-backend-for-zend-framework-by-carl-oscar-aaro)

Requires the phpredis extension for PHP to enable PHP to communicate with the [Redis](http://redis.io/) key-value store. Start with installing the phpredis PHP extension available at

Set up the Redis cache backend by invoking the following code somewhere in your project.

```
$redisCache = Zend_Cache::factory(
    new Zend_Cache_Core(array(
        'lifetime' => 3600,
        'automatic_serialization' => true,
    )),
    new Extended_Cache_Backend_Redis(array(
        'servers' => array(
            array(
                'host' => '127.0.0.1',
                'port' => 6379,
                'dbindex' => 1,
                // 'persistent' => false, // not a persistent connection
                // 'auth' => true, // enable authentication
                // 'password' => 'mypwd000000', // password to authenticate on redis server
            ),
        ),
        // 'key_prefix' => 'my_app', // if desire to add a prefix to all cache keys
    ))
);
```

Writing and reading from the cache works the same way as all other Zend Framework cache backends.

```
$cacheKey = 'my_key';
$data = 'e48e13207341b6bffb7fb1622282247b';

/* Save data to cache */
$redisCache->save($data, $cacheKey, array('tag1', 'tag2'));

/* Load data from cache */
$data = $redisCache->load($cacheKey);

/* Clear all keys with tag 'tag1' */
$redisCache->clean(Zend_Cache::CLEANING_MODE_MATCHING_ANY_TAG, array('tag1'));

/* Clear all cache (flush cache) */
$redisCache->clean(Zend_Cache::CLEANING_MODE_ALL);
```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity43

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 61.1% 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.

### Community

Maintainers

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

---

Top Contributors

[![ex-nerd](https://avatars.githubusercontent.com/u/154074?v=4)](https://github.com/ex-nerd "ex-nerd (11 commits)")[![kalaspuff](https://avatars.githubusercontent.com/u/89139?v=4)](https://github.com/kalaspuff "kalaspuff (4 commits)")[![silasrm](https://avatars.githubusercontent.com/u/197187?v=4)](https://github.com/silasrm "silasrm (3 commits)")

---

Tags

cachephprediszend-framework

### Embed Badge

![Health badge](/badges/kalaspuff-redis-cache-zend-framework/health.svg)

```
[![Health](https://phpackages.com/badges/kalaspuff-redis-cache-zend-framework/health.svg)](https://phpackages.com/packages/kalaspuff-redis-cache-zend-framework)
```

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