public function __construct($Host, $Port = 11211, $Timeout = null, $PConnect = false)
{
$this->Memcache = new \Memcache();
if ($PConnect) {
if ($Timeout === null) {
$this->Memcache->pconnect($Host, $Port);
} else {
$this->Memcache->pconnect($Host, $Port, $Timeout);
}
} else {
if ($Timeout === null) {
$this->Memcache->connect($Host, $Port);
} else {
$this->Memcache->connect($Host, $Port, $Timeout);
}
}
}