private function buildMemcachedCache() { if (null === $this->host) { throw new HostShouldBeProvidedException(); } if (null === $this->port) { $this->port = Memcached::DEFAULT_PORT; } $this->server->addserver($this->host, $this->port); $this->cacheProvider->setMemcached($this->server); }