Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / memcache / src / Connection / MemcacheConnectionInterface.php
1 <?php
2
3 namespace Drupal\memcache\Connection;
4
5 /**
6  * Defines the Memcache connection interface.
7  */
8 interface MemcacheConnectionInterface {
9
10   /**
11    * Adds a memcache server.
12    *
13    * @param string $server_path
14    *   The server path including port.
15    * @param bool $persistent
16    *   Whether this server connection is persistent or not.
17    */
18   public function addServer($server_path, $persistent = FALSE);
19
20   /**
21    * Returns the internal memcache object.
22    *
23    * @return object
24    *   e.g. \Memcache|\Memcached
25    */
26   public function getMemcache();
27
28   /**
29    * Closes the memcache instance connection.
30    */
31   public function close();
32
33 }