Download the PHP package bkhrupa/kohana-rediscache without Composer
On this page you can find all versions of the php package bkhrupa/kohana-rediscache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package kohana-rediscache
rediscache-kohana3.3
Very simple cache module phpredis for kohana3.3 :) Require Kohana Cache module
Redis client - phpredis (https://github.com/nicolasff/phpredis)
Original module - (https://github.com/infarmer/phpredis-kohana3.3)
Example
Enable module bootstrap.php
Kohana::modules(array(
...
'cache' => MODPATH.'cache',
'rediscache' => MODPATH.'rediscache',
...
));
Config. Add to Kohana cache config redis driver config/cache.php
...
'redis' => array(
'driver' => 'redis',
'port' => 6379,
'host' => 'localhost',
'db_num' => 0,
'igbinary_serialize' => false,
'password' => '',
),
...
If redis by default cache driver needed bootstrap.php
// default cache driver
Cache::$default = 'redis';
Usage
$redis_cache = Cache::instance('redis');
$redis_cache->set('test_cache', array('foo', 'bar'), 10);
$redis_cache->get('test_cache');
All versions of kohana-rediscache with dependencies
PHP Build Version
Package Version
Requires
composer/installers Version
~1.0
kohana/core Version >=3.3
kohana/cache Version >=3.3
php Version >=5.3.3
kohana/core Version >=3.3
kohana/cache Version >=3.3
php Version >=5.3.3
The package bkhrupa/kohana-rediscache contains the following files
Loading the files please wait ....