2017 © Pedro Peláez
 

cakephp-plugin cache-engines

CakePHP Cache Engines

image

traackr/cache-engines

CakePHP Cache Engines

  • Monday, April 2, 2018
  • by dchancogne
  • Repository
  • 9 Watchers
  • 2 Stars
  • 13,824 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 10 Versions
  • 8 % Grown

The README.md

CakePHP Cache Engines

Build Status, (*1)

This CakePHP plugin provides some additional cache engines that can be used by CakePHP., (*2)

We currently provide three cache engines:, (*3)

  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

bash $ cd /path/to/cake/application/app $ composer require traackr/cache-engines $ composer update, (*4)

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:, (*5)

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:, (*6)

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., (*7)

Contributing

The Versions

02/04 2018

dev-code-polish

dev-code-polish https://traackr.com/

CakePHP Cache Engines

  Sources   Download

The Requires

 

The Development Requires

by Rajiv Ramaiah

cache cakephp traackr cache engine

02/04 2018

dev-dvlp

dev-dvlp https://traackr.com/

CakePHP Cache Engines

  Sources   Download

The Requires

 

The Development Requires

by Rajiv Ramaiah

cache cakephp traackr cache engine

01/05 2017

dev-master

9999999-dev https://traackr.com/

CakePHP Cache Engines

  Sources   Download

The Requires

 

The Development Requires

by Rajiv Ramaiah

cache cakephp traackr cache engine

01/05 2017

0.3.0

0.3.0.0 https://traackr.com/

CakePHP Cache Engines

  Sources   Download

The Requires

 

The Development Requires

by Rajiv Ramaiah

cache cakephp traackr cache engine

01/05 2017

dev-keys-optimization

dev-keys-optimization https://traackr.com/

CakePHP Cache Engines

  Sources   Download

The Requires

 

The Development Requires

by Rajiv Ramaiah

cache cakephp traackr cache engine

11/04 2017

dev-keys-optimization-multidelete

dev-keys-optimization-multidelete https://traackr.com/

CakePHP Cache Engines

  Sources   Download

The Requires

 

The Development Requires

by Rajiv Ramaiah

cache cakephp traackr cache engine

22/09 2015

0.2.1

0.2.1.0 https://traackr.com/

CakePHP Cache Engines

  Sources   Download

The Requires

 

The Development Requires

by Rajiv Ramaiah

cache cakephp traackr cache engine

15/09 2015

0.2.0

0.2.0.0 https://traackr.com/

CakePHP Cache Engines

  Sources   Download

The Requires

 

The Development Requires

by Rajiv Ramaiah

cache cakephp traackr cache engine

31/05 2015

dev-cake3

dev-cake3 https://traackr.com/

CakePHP Cache Engines

  Sources   Download

The Requires

 

The Development Requires

cache cakephp traackr cache engine

12/03 2014

0.1

0.1.0.0 https://traackr.com/

CakePHP Cache Engines

  Sources   Download

The Requires

 

The Development Requires

cache cakephp traackr cache engine