Built a simple wrapper for phpredis
Not every page / page view will need to connect to Redis, set it up so the connect isn't made until a call is made, lazy connect if you will.
This commit is contained in:
parent
061d7aee73
commit
7063b7aafe
5 changed files with 109 additions and 5 deletions
|
@ -58,7 +58,7 @@ $config = array(
|
|||
'local' => array(
|
||||
'redis' => array(
|
||||
'type' => 'redis',
|
||||
'hostname' => 'localhost',
|
||||
'hostname' => '127.0.0.1',
|
||||
'port' => 6379,
|
||||
'database' => '0',
|
||||
'namespace' => 'lb',
|
||||
|
@ -67,7 +67,7 @@ $config = array(
|
|||
'production' => array(
|
||||
'redis' => array(
|
||||
'type' => 'redis',
|
||||
'hostname' => 'localhost',
|
||||
'hostname' => '127.0.0.1',
|
||||
'port' => 6381,
|
||||
'database' => '0',
|
||||
'namespace' => 'lb',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue