boesing/zend-cache-redis-cluster

This package is abandoned and no longer maintained. The author suggests using the laminas/laminas-cache-storage-adapter-redis package instead.

Redis Cluster support for zend-cache

Maintainers

πŸ‘ boesing

Package info

github.com/boesing/zend-cache-redis-cluster

pkg:composer/boesing/zend-cache-redis-cluster

Fund package maintenance!

Community Bridge

Statistics

Installs: 13 388

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

v0.2.1 2021-07-09 10:46 UTC

Requires

Suggests

Provides

None

Conflicts

None

Replaces

None

BSD-3-Clause 1a9357b00f53569c0322f5ea116b23bbbb76d803

  • Maximilian BΓΆsing <max.woop@boesing.email>

redisZendFrameworkzfredis clusterzend-cache

This package is auto-updated.

Last update: 2021-07-09 10:49:24 UTC


README

πŸ‘ Build Status
πŸ‘ Coverage Status

zendframework/zend-cache adapter to provide RedisCluster support to projects using zend-cache.

Installation

composer require boesing/zend-cache-redis-cluster

Configuration

use Boesing\ZendCacheRedisCluster\RedisCluster;

return [
 'caches' => [
 /**
 * NOTE: the cluster nodename must exist in your php.ini!
 * If you configure timeout in your php.ini per nodename aswell, there is no need to
 * configure more than the nodename.
 */
 'redis-cluster-cache-with-nodename' => [
 'adapter' => [
 'name' => RedisCluster::class,
 'options' => [
 'namespace' => '',
 'namespace_separator' => ':',
 'nodename' => 'clusternode1',
 'persistent' => false,
 // You can provide the redis version by configuration to avoid an info call on each connect
 'redis_version' => '',
 ],
 ],
 ],
 'redis-cluster-cache-with-seeds' => [
 'adapter' => [
 'name' => RedisCluster::class,
 'options' => [
 'namespace' => '',
 'namespace_separator' => ':',
 'seeds' => ["hostname:port", "hostname2:port2", /* ... */],
 'timeout' => 1,
 'readTimeout' => 2,
 'persistent' => false,
 // You can provide the redis version by configuration to avoid an info call on each connect
 'redis_version' => '',
 ],
 ],
 ],
 ],
];