承接 kba-team/cakephp-predis 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

kba-team/cakephp-predis

最新稳定版本:v3.0.0

Composer 安装命令:

composer require kba-team/cakephp-predis

包简介

Predis cache engine for CakePHP

README 文档

README

License: MIT Packagist Version

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:

  • engine Predis
  • scheme Currently, TCP only
  • prefix See CakePhp 2.x Caching
  • server Redis server (must be master),
  • sentinel List of sentinel nodes (hostnames or IP addresses)
  • port Either redis Port (6379) is server is used otherwise the sentinel port (26379)
  • exceptions Should exceptions be thrown or not (true)
  • database See CakePhp 2.x Caching => 0,
  • password Redis password
  • service Sentinel only: Sentinel service name (mymaster)

Further reading

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-06-30