protected function __construct($prefix) { $this->prefix = $prefix; if (isset(\Config::$redis)) { $this->redis = CConnMgr::getInstance()->redis(\Config::$redis); } }
public static function getInstance() { if (CConnMgr::$instance == null) { CConnMgr::$instance = new CConnMgr(); } return CConnMgr::$instance; }