Skip to content
Redis session/caching plugin for CakePHP 2.0
PHP
Find file
Pull request Compare This branch is 45 commits ahead, 1 commit behind pdata:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Config
Lib
Model/Datasource/Session
.semver
README

README

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. Version 0.7 is included.

## Initial setup required

Put the following in your bootstrap.php to load RedisCache

 CakePlugin::load('RedisCache', array('bootstrap' => true));

To change your Caches to use RedisCache put this in bootstrap.php

 RedisCache::configureCache('default');
 RedisCache::configureCache('_cake_core_', array('prefix'	=> 'cake_core_'));
 RedisCache::configureCache('_cake_model_', array('prefix'	=> 'cake_model_'));

## Using for Session handling:

To change your Sessions to use RedisCache put this in your bootstrap.php

 RedisCache::configureSession();
Something went wrong with that request. Please try again.