illusorium / koseven-cache-redis
Simplest Redis implementation of cache module for koseven framework
Installs: 242
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 2
Open Issues: 0
Type:kohana-module
Requires
- php: >=5.2.4
- koseven/koseven: ^3.3
- predis/predis: ^1.1
This package is auto-updated.
Last update: 2024-10-26 02:32:19 UTC
README
Simple redis cache module for Koseven
Install via composer
composer require illusorium/koseven-cache-redis:dev-master
Usage
First, add module to modules list in APPPATH/bootstrap.php:
Kohana::modules([ 'cache-redis' => MODPATH . 'koseven-cache-redis' ])
To set Redis cache as default,
either set key 'default' => 'redis'
in config/cache.php
or set Cache::$default = 'redis'
before usage.
To use Redis cache only for some keys, call
Cache::instance('redis')->set|get(...)