interface MemcacheConnectionInterface in Memcache API and Integration 8.2
Defines the Memcache connection interface.
Hierarchy
- interface \Drupal\memcache\Connection\MemcacheConnectionInterface
Expanded class hierarchy of MemcacheConnectionInterface
All classes that implement MemcacheConnectionInterface
File
- src/
Connection/ MemcacheConnectionInterface.php, line 8
Namespace
Drupal\memcache\ConnectionView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MemcacheConnectionInterface:: |
public | function | Adds a memcache server. | 2 |
MemcacheConnectionInterface:: |
public | function | Closes the memcache instance connection. | 2 |
MemcacheConnectionInterface:: |
public | function | Returns the internal memcache object. | 2 |