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