Version 1
[yaffs-website] / web / core / lib / Drupal / Core / KeyValueStore / KeyValueExpirableFactoryInterface.php
diff --git a/web/core/lib/Drupal/Core/KeyValueStore/KeyValueExpirableFactoryInterface.php b/web/core/lib/Drupal/Core/KeyValueStore/KeyValueExpirableFactoryInterface.php
new file mode 100644 (file)
index 0000000..a1b7a01
--- /dev/null
@@ -0,0 +1,21 @@
+<?php
+
+namespace Drupal\Core\KeyValueStore;
+
+/**
+ * Defines the expirable key/value store factory interface.
+ */
+interface KeyValueExpirableFactoryInterface {
+
+  /**
+   * Constructs a new expirable key/value store for a given collection name.
+   *
+   * @param string $collection
+   *   The name of the collection holding key and value pairs.
+   *
+   * @return \Drupal\Core\KeyValueStore\KeyValueStoreExpirableInterface
+   *   An expirable key/value store implementation for the given $collection.
+   */
+  public function get($collection);
+
+}