定制 zunnu/cake-redis-cluster 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

zunnu/cake-redis-cluster

Composer 安装命令:

composer require zunnu/cake-redis-cluster

包简介

Redis cluster cache storage plugin for CakePHP

README 文档

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

Name Type default Description
duration int 3600 Specify how long items last
failover string | null null Automatic slave failover mode
groups string[] [] List of associated groups or 'tags'
name string | null null Redis cluster name
nodes string[] [] URL or IP of the Redis cluster nodes
persistent bool true Use persistent connection
prefix string 'cake_' Prefix prepended to all entries
read_timeout float 0 Read timeout in seconds
timeout float 0 Timeout in seconds

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.

统计信息

  • 总下载量: 21.86k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固