forked from cheggaaa/rediska-ko
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
40 lines (30 loc) · 1.14 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Rediska (http://rediska.geometria-lab.net) module for Kohana php framework (http://kohanaphp.com)
1. Installation
git submodule add git://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);