kba-team/cakephp-predis
最新稳定版本:v3.0.0
Composer 安装命令:
composer require kba-team/cakephp-predis
包简介
Predis cache engine for CakePHP
README 文档
README
Predis plugin for CakePHP 2.x
Usage
composer require kba-team/cakephp-predis
In bootstrap.php load the Plugin ...
CakePlugin::load("PredisCache");
In your config file ...
Cache::config('_session_', [ 'engine' => 'PredisCache.Predis', 'sentinel' => ['<sentinel host 1>', ...., '<sentinel host n>'], 'password' => "<password>", 'port' => 26379, 'exceptions' => true, 'database' => 1, 'prefix' => "", 'duration' => '+2 days', ]);
Possible configuration parameters are:
enginePredisschemeCurrently, TCP onlyprefixSee CakePhp 2.x CachingserverRedis server (must be master),sentinelList of sentinel nodes (hostnames or IP addresses)portEither redis Port (6379) isserveris used otherwise the sentinel port (26379)exceptionsShould exceptions be thrown or not (true)databaseSee CakePhp 2.x Caching => 0,passwordRedis passwordserviceSentinel only: Sentinel service name (mymaster)
Further reading
- About CakePHP 2.x Caching
统计信息
- 总下载量: 14.39k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-06-30