Esempio n. 1
0
 public function __construct($host = 'localhost', $port = 9200, $timeout = null)
 {
     if (!defined('CURLE_OPERATION_TIMEDOUT')) {
         define('CURLE_OPERATION_TIMEDOUT', 28);
     }
     parent::__construct($host, $port);
     if (null !== $timeout) {
         $this->setTimeout($timeout);
     }
     $this->ch = curl_init();
 }
 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);
 }
 /**
  * Perform refresh of current indexes
  *
  * @return array
  */
 public function refresh()
 {
     return $this->transport->request(array('_refresh'), 'GET');
 }