Download the PHP package peloncano/cakephp-plugin-redis-cache without Composer
On this page you can find all versions of the php package peloncano/cakephp-plugin-redis-cache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download peloncano/cakephp-plugin-redis-cache
More information about peloncano/cakephp-plugin-redis-cache
Files in peloncano/cakephp-plugin-redis-cache
Package cakephp-plugin-redis-cache
Short Description A CakePHP 2.0 plugin enabling Redis (http://redis.io/) backed sessions and caching. Uses the Predis (https://github.com/nrk/predis) library to communicate with Redis.
License
Informations about the package cakephp-plugin-redis-cache
RedisCache CakePHP 2.x Plugin
A CakePHP 2.x plugin enabling Redis backed sessions and caching. Uses the Predis library to communicate with Redis.
Had to resurrect this plugin for a legacy project that needed to connect to redis via TLS/SSL.
Installation
Run composer command
Initial setup required
The plugin includes its own bootstrap.php
file which must be loaded in the application app/Config/bootstrap.php
file like so:
The plugin will, by default, communicate with a Redis server setup on localhost
at port 6379
with no password. However
you may use remote Redis servers if desired. You can also configure different servers for caching and session duties
as the exact configuration of these may be slightly different for best performance.
Using for Caching:
Connection configuration
if loading a configuration file (Doc):
If TLS/SSL is needed:
In app/Config/bootstrap.php
you can now configure your cache
Note: Make sure this is done after the loading of the plugin
Using for Session handling (PENDING):
In app/Config/core.php
under the session configuration section:
Global Prefix
You can add a global prefix to namespace all keys by adding the following lines right after the plugin is loaded.
For Cache
:
For Session
:
Note: This would apply before any cache specific prefix