Campustream 1.0
A social network MQP for WPI
|
00001 <? 00002 00003 include_once $GLOBALS['APPROOT'] . 'application/lib/predis.php'; 00004 00005 class RedisManager { 00006 private static $connection; 00007 00008 public static function connection() { 00009 if (self::$connection == null) { 00010 require($GLOBALS['APPROOT'] . 'application/config/redis.php'); 00011 00012 self::$connection = new Predis\Client($config); 00013 } 00014 00015 return self::$connection; 00016 } 00017 }