__construct() public method

Default constructor, just set host and port
public __construct ( string $host, integer $port )
$host string
$port integer
Ejemplo n.º 1
0
 public function __construct($host = 'localhost', $port = 9200, $timeout = null)
 {
     parent::__construct($host, $port);
     if (null !== $timeout) {
         $this->setTimeout($timeout);
     }
     $this->ch = curl_init();
 }
Ejemplo n.º 2
0
 public function __construct($host = "127.0.0.1", $port = 6379)
 {
     parent::__construct($host, $port);
 }
Ejemplo n.º 3
0
 public function __construct($host = "127.0.0.1", $port = 11311, $timeout = null)
 {
     parent::__construct($host, $port);
     $this->conn = new Memcache();
     $this->conn->connect($host, $port, $timeout);
 }