public function addServer($host = 'localhost', $port = 11211) { if ($this->memcached->addServer($host, $port, 1) === FALSE) { $error = error_get_last(); throw new Nette\InvalidStateException("Memcached::addServer(): {$error['message']}."); } }