illusorium/koseven-cache-redis

Simplest Redis implementation of cache module for koseven framework

dev-master 2020-08-25 16:44 UTC

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