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

4352.1k↓10.7%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 1mo 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 72% 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

[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[wp-media/wp-rocket

Performance optimization plugin for WordPress

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

The Illuminate Cache package.

12835.6M1.4k](/packages/illuminate-cache)[colinmollenhour/php-redis-session-abstract

A Redis-based session handler with optimistic locking

6325.6M14](/packages/colinmollenhour-php-redis-session-abstract)[cheprasov/php-redis-client

Php client for Redis. It is a fast, fully-functional and user-friendly client for Redis, optimized for performance. RedisClient supports the latest versions of Redis starting from 2.6 to 6.0

1281.2M21](/packages/cheprasov-php-redis-client)[amphp/redis

Efficient asynchronous communication with Redis servers, enabling scalable and responsive data storage and retrieval.

165634.7k44](/packages/amphp-redis)

PHPackages © 2026

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