承接 traackr/cache-engines 相关项目开发

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

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

traackr/cache-engines

最新稳定版本:0.3.7

Composer 安装命令:

composer require traackr/cache-engines

包简介

CakePHP Cache Engines

README 文档

README

Build Status

This CakePHP plugin provides some additional cache engines that can be used by CakePHP.

We currently provide three cache engines:

  1. RedisTreeCacheEngine: Redis based cache that supports managing keys using wildcards and cache key 'parents'.
  2. FileTreeCacheEngine: Local filesystem based cache that supports managing keys using wildcards and cache key 'parents'.
  3. FallBackCacheEngine: Allows you to define two cache engines; the first engine is used as the primary cache engine. The second cache engine is used only if the primary fails.

##Installation

$ cd /path/to/cake/application/app $ composer require traackr/cache-engines $ composer update

##Configuring the Engines

To configure and use these cache engines, simply specify the cache engine name in the appropriate configuration file (this is typically app/Config/bootstrap.php, c.f., CakePHP cache configuration documentation). The RedisTreeeEngine and FileTreeEngine take the same arguments as the RedisEngine and FileEngine that ship with CakePHP:

Cache::config("post_data", array( 'engine' => 'RedisTree', 'server' => 'redis-server', 'port' => 6379, 'duration' => 300, 'prefix' => 'posts:' )); 

FallbackEngine expects a configuration for the primary and secondary engines:

Cache::config("post_data", array( 'engine' => 'Fallback', 'name' => "post_data", 'primary' => array( 'profile' => '2.8', // optional, if you want to hardcode a predis profile to use 'engine' => 'RedisTree', 'server' => 'redis-server', 'port' => 6379, 'duration' => 300, 'prefix' => 'posts:' ), 'secondary' => array( // alternate cache if Redis fails 'engine' => 'FileTree', 'path' => CACHE.'/data/', 'duration' => 300 ) )); 

##Documentation

All other documentation can be found in the doc folder.

##Contributing

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 17
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固