-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathredis.php
More file actions
executable file
·59 lines (59 loc) · 1.91 KB
/
Copy pathredis.php
File metadata and controls
executable file
·59 lines (59 loc) · 1.91 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
/*{{{LICENSE
+-----------------------------------------------------------------------+
| SsdPHP Framework |
+-----------------------------------------------------------------------+
| This program is free software; you can redistribute it and/or modify |
| it under the terms of the GNU General Public License as published by |
| the Free Software Foundation. You should have received a copy of the |
| GNU General Public License along with this program. If not, see |
| http://www.gnu.org/licenses/. |
| Copyright (C) 2015-2020. All Rights Reserved. |
+-----------------------------------------------------------------------+
| Supports: http://www.SsdPHP.com |
+-----------------------------------------------------------------------+
}}}*/
/**
* redis配置
* 直接支持主从,支持多个redis配置链接
* 自动将CUD 的操作进行主操作,R操作在Slave上(没有Slave操作Main)
* Main配置必须
* 'redis' => array(
'main' => array(
array(
'host' => "127.0.0.1",
'port' => "6379",
'password' => "",
'pconnect' => false,
)
),
'slave'=>array(
array(
'host' => "127.0.0.1",
'port' => "6379",
'password' => "",
'pconnect' => false,
)
)
)
*/
return array(
'redis' => array(
'main' => array(
array(
'host' => "127.0.0.1",
'port' => "6379",
'password' => "",
'pconnect' => false,
)
),
'slave'=>array(
array(
'host' => "127.0.0.1",
'port' => "6379",
'password' => "",
'pconnect' => false,
)
)
)
);