PHPackages                             cytec/zend3-cache-predis - 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. cytec/zend3-cache-predis

Abandoned → [cytec/laminas-cache-predis](/?search=cytec%2Flaminas-cache-predis)Library[Caching](/categories/caching)

cytec/zend3-cache-predis
========================

Redis adapter for Zend Framework 3 with tagging support

0.0.6(7y ago)02.2kBSD-3-ClausePHPPHP ^5.6 || ^7.0CI failing

Since May 2Pushed 4y ago3 watchersCompare

[ Source](https://github.com/cytecbg/zend3-cache-predis)[ Packagist](https://packagist.org/packages/cytec/zend3-cache-predis)[ Docs](https://github.com/cytecbg/zend3-cache-predis)[ RSS](/packages/cytec-zend3-cache-predis/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (4)Versions (7)Used By (0)

cytec/laminas-cache-predis
==========================

[](#cyteclaminas-cache-predis)

Redis adapter for Laminas framework with tagging support

Installation
------------

[](#installation)

```
composer require cytec/laminas-cache-predis

```

Configuration
-------------

[](#configuration)

Somewhere in your configuration (eg. config/autoload/global.php) add

```
...
'caches' => [
    'AppCache' => [
        'adapter' => 'Cytec\Cache\Storage\Adapter\Predis',
        'options' => [
            'ttl' => 600,
            'predis_client_connections' => [
                'host' => '127.0.0.1',
                'port' => 6379,
            ],
            'predis_client_options' => [
                'profile' => '2.4',
                'prefix'  => 'ns:'
            ]
        ],
        'plugins' => [
            ['name' => 'serializer']
        ],
    ]
],
...
```

Since laminas-cache v3 storage adapters need to be registered as modules:

`modules.config.php`:

```
