static public function connect(
		\Memcache $Memcache, $host, $port = 11211, $persistent = true){

		$host = (string) $host;
		$port = (int) $port;

		if($persistent){

			$result = @$Memcache->pconnect($host, $port);
		}
		else{

			$result = @$Memcache->connect($host, $port);
		}

		if($result && self::COMPRESS_THRESHOLD > 0){

			/** @noinspection PhpVoidFunctionResultUsedInspection */
			/** @noinspection PhpUnusedLocalVariableInspection */
			$compress = @$Memcache->setcompressthreshold(
				self::COMPRESS_THRESHOLD, self::COMPRESS_SAVINGS);

			assert('$compress !== false');
		}

		return $result;
	}