3 namespace Drupal\memcache\Connection;
6 * Defines the Memcache connection interface.
8 interface MemcacheConnectionInterface {
11 * Adds a memcache server.
13 * @param string $server_path
14 * The server path including port.
15 * @param bool $persistent
16 * Whether this server connection is persistent or not.
18 public function addServer($server_path, $persistent = FALSE);
21 * Returns the internal memcache object.
24 * e.g. \Memcache|\Memcached
26 public function getMemcache();
29 * Closes the memcache instance connection.
31 public function close();