snakano/cakephp-redis-cluster-cache
Composer 安装命令:
composer require snakano/cakephp-redis-cluster-cache
包简介
Redis Cache Engine for CakePHP 2.x (support redis cluster)
README 文档
README
Redis cluster cache engine for CakePHP 2.x
Installation
Install the plugin using composer
composer require "snakano/cakephp-redis-cluster-cache"
Usage
Load the plugin app/Config/bootstrap.php file:
CakePlugin::load('RedisClusterCache');
And cache configuration:
Cache::config('default', array(
'engine' => 'RedisClusterCache.RedisCluster',
'prefix' => Inflector::slug(APP_DIR) . '_',
'servers' => ['127.0.0.1:6379'],
'password' => false,
'timeout' => 0,
'read_timeout' => 0,
'persistent' => false,
'slave_failover' => RedisCluster::FAILOVER_NONE,
));
统计信息
- 总下载量: 134
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-11-20