You are here

interface MemcacheConnectionInterface in Memcache API and Integration 8.2

Defines the Memcache connection interface.

Hierarchy

Expanded class hierarchy of MemcacheConnectionInterface

All classes that implement MemcacheConnectionInterface

File

src/Connection/MemcacheConnectionInterface.php, line 8

Namespace

Drupal\memcache\Connection
View source
interface MemcacheConnectionInterface {

  /**
   * Adds a memcache server.
   *
   * @param string $server_path
   *   The server path including port.
   * @param bool $persistent
   *   Whether this server connection is persistent or not.
   */
  public function addServer($server_path, $persistent = FALSE);

  /**
   * Returns the internal memcache object.
   *
   * @return object
   *   e.g. \Memcache|\Memcached
   */
  public function getMemcache();

  /**
   * Closes the memcache instance connection.
   */
  public function close();

}

Members

Namesort descending Modifiers Type Description Overrides
MemcacheConnectionInterface::addServer public function Adds a memcache server. 2
MemcacheConnectionInterface::close public function Closes the memcache instance connection. 2
MemcacheConnectionInterface::getMemcache public function Returns the internal memcache object. 2