cheggaaa/rediska-ko

此包的最新版本(dev-master)没有可用的许可证信息。

Rediska (http://rediska.geometria-lab.net) 模块,用于Kohana php框架

安装: 6

依赖项: 0

建议者: 0

安全性: 0

星标: 24

关注者: 3

分支: 5

开放问题: 1

类型:kohana-module

dev-master 2015-01-21 09:11 UTC

This package is not auto-updated.

Last update: 2024-09-24 16:23:53 UTC


README

Rediska (http://rediska.geometria-lab.net) module for Kohana php framework (http://kohanaframework.org/)

For support kohana 3.0 -3.2 in v3.2 banch

1. Installation

git submodule add https://github.com/cheggaaa/rediska-ko.git modules/rediska
if you don't use git - move source to modules/rediska

2. Create config

Rediska config:
- copy modules/rediska/config/rediska.php to application/config/rediska.php
- change your application/config/rediska.php
On default config your have 3 instances of Rediska: default, cache, session
You can add new instance or remove exists. Option list you can see on rediska doc (http://rediska.geometria-lab.net/documentation/get-started/)

Cache config (optional):
- create group "redis" in config/cache.php
Example:
'redis' => array (
    // rediska instance name, must be exists on rediska config 
    'instance' => 'cache' 
)

Session config (optional):
- create group "redis" in config/session.php
Example:
'redis' => array (
    // rediska instance name, must be exists on rediska config 
    'instance' => 'session' 
)


3. Using

Get instance
   $rediska = Rediska_Manager::get();
   $resiska = Rediska_Manager::get('my_instance_name');
     OR
   $rediska = new Rediska($options);