Nette\Caching\Storages\NewMemcachedStorage::addServer PHP Метод

addServer() публичный Метод

public addServer ( $host = 'localhost', $port = 11211 )
    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']}.");
        }
    }