zunnu/cake-redis-cluster

Redis cluster cache storage plugin for CakePHP

Installs: 12 243

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 1

Open Issues: 0

Type:cakephp-plugin

1.0.2 2023-05-17 06:56 UTC

This package is auto-updated.

Last update: 2025-01-24 15:13:04 UTC


README

This is a fork of the kgbph/cakephp-redis-cluster. This fork only changes the namespacing of the plugin and the minimum required php version.

Installation

You can install this plugin into your CakePHP application using composer.

The recommended way to install composer packages is:

composer require zunnu/cake-redis-cluster

Usage

Use as a cache engine. See CakePHP Caching.

Cache::setConfig('redis', [
    'className' => 'CakeRedisCluster.RedisCluster',
    'nodes' => [
        'redis-node-0:6379',
        'redis-node-1:6379',
        'redis-node-2:6379',
        'redis-node-3:6379',
        'redis-node-4:6379',
        'redis-node-5:6379',
    ],
]);

Options

Code quality checks

PHP CodeSniffer

Execute composer cs-check inside the PHP container.

PHP Static Analysis Tool

Execute composer stan inside the PHP container.

PHPUnit

Execute composer test inside the PHP container.

Run all checks

Execute composer check inside the PHP container.