Пример #1
0
 public function __construct()
 {
     $this->User = new User_Plugin();
     $this->Config = SimpleConfig::getInstance();
     $this->Keys = $this->Config['redis_keys'];
     $this->_authLogin();
 }
Пример #2
0
 public function __construct($uniqid = false)
 {
     $this->Database = (new Database_Plugin())->getConnect();
     $this->Config = SimpleConfig::getInstance();
     $this->Keys = $this->Config['redis_keys'];
     $this->_uniqid = $uniqid;
     if ($uniqid) {
         $this->_readData();
     }
 }
Пример #3
0
 public function __construct()
 {
     $config = SimpleConfig::getInstance();
     $redis = new Predis\Client(['scheme' => 'tcp', 'host' => $config['redis_ip'], 'port' => $config['redis_prot']]);
     $this->_connect = $redis;
 }
Пример #4
0
 public function __construct()
 {
     $this->Database = (new Database_Plugin())->getConnect();
     $this->Config = SimpleConfig::getInstance();
     $this->Keys = $this->Config['redis_keys'];
 }