(c) Raymond Julin For the full copyright and license information, please view the LICENSE file that was distributed with this source code.
コード例 #1
0
ファイル: HTTP.php プロジェクト: schpill/standalone
 public function __construct($host = 'localhost', $port = 9200, $timeout = null)
 {
     parent::__construct($host, $port);
     if (null !== $timeout) {
         $this->setTimeout($timeout);
     }
     $this->ch = curl_init();
 }
コード例 #2
0
ファイル: Redis.php プロジェクト: schpill/standalone
 public function __construct($host = "127.0.0.1", $port = 6379)
 {
     parent::__construct($host, $port);
 }
コード例 #3
0
ファイル: Memcached.php プロジェクト: schpill/standalone
 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);
 }