You are here

public function DrupalMemcached::addServer in Memcache Storage 8

Adds a new memcached server.

Parameters

$host: Memcached host name. For example:

  • 127.0.0.1
  • /path/to/memcached.socket.

$port: Port for memcached host. Always 0 for unix sockets.

Overrides DrupalMemcachedInterface::addServer

File

src/DrupalMemcached.php, line 90

Class

DrupalMemcached
Class DrupalMemcached

Namespace

Drupal\memcache_storage

Code

public function addServer($host, $port) {
  $this->memcached
    ->addServer($host, $port);
}