System/libraries/Cache
public static function getRs() { $config = CI::config('redis'); $redis = new \Redis(); try { if ($redis->connect($config['host'], $config['port'])) { $redis->select((int)$config['db']); } } catch (\Exception $e) { return false; } return $redis; }
Last updated 3 years ago