MemcacheConnectionInterface.php in Memcache API and Integration 8.2
Namespace
Drupal\memcache\ConnectionFile
src/Connection/MemcacheConnectionInterface.phpView source
<?php
namespace Drupal\memcache\Connection;
/**
* Defines the Memcache connection interface.
*/
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();
}
Interfaces
Name | Description |
---|---|
MemcacheConnectionInterface | Defines the Memcache connection interface. |