Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / memcache / src / Connection / MemcacheConnectionInterface.php
diff --git a/web/modules/contrib/memcache/src/Connection/MemcacheConnectionInterface.php b/web/modules/contrib/memcache/src/Connection/MemcacheConnectionInterface.php
new file mode 100644 (file)
index 0000000..1c79361
--- /dev/null
@@ -0,0 +1,33 @@
+<?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();
+
+}