You are here

public function DrupalMemcachedInterface::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.

1 call to DrupalMemcachedInterface::addServer()
DrupalMemcachedBase::addServers in src/DrupalMemcachedBase.php
2 methods override DrupalMemcachedInterface::addServer()
DrupalMemcache::addServer in src/DrupalMemcache.php
Adds a new memcached server.
DrupalMemcached::addServer in src/DrupalMemcached.php
Adds a new memcached server.

File

src/DrupalMemcachedInterface.php, line 41

Class

DrupalMemcachedInterface

Namespace

Drupal\memcache_storage

Code

public function addServer($host, $port);