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:
Josh Sherman 2013-12-15 16:30:12 -05:00
parent 061d7aee73
commit 7063b7aafe
5 changed files with 109 additions and 5 deletions

View file

@ -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',