public function __construct() { $this->User = new User_Plugin(); $this->Config = SimpleConfig::getInstance(); $this->Keys = $this->Config['redis_keys']; $this->_authLogin(); }
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(); } }
public function __construct() { $config = SimpleConfig::getInstance(); $redis = new Predis\Client(['scheme' => 'tcp', 'host' => $config['redis_ip'], 'port' => $config['redis_prot']]); $this->_connect = $redis; }
public function __construct() { $this->Database = (new Database_Plugin())->getConnect(); $this->Config = SimpleConfig::getInstance(); $this->Keys = $this->Config['redis_keys']; }