Version 1
[yaffs-website] / vendor / dflydev / placeholder-resolver / src / Dflydev / PlaceholderResolver / Cache / CacheInterface.php
diff --git a/vendor/dflydev/placeholder-resolver/src/Dflydev/PlaceholderResolver/Cache/CacheInterface.php b/vendor/dflydev/placeholder-resolver/src/Dflydev/PlaceholderResolver/Cache/CacheInterface.php
new file mode 100644 (file)
index 0000000..99f7a38
--- /dev/null
@@ -0,0 +1,48 @@
+<?php
+
+/*
+ * This file is a part of dflydev/placeholder-resolver.
+ *
+ * (c) Dragonfly Development Inc.
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Dflydev\PlaceholderResolver\Cache;
+
+interface CacheInterface
+{
+    /**
+     * Does specified placeholder exist?
+     *
+     * @param string $placeholder
+     *
+     * @return bool
+     */
+    public function exists($placeholder);
+
+    /**
+     * Get placeholder's value
+     *
+     * @param string $placeholder
+     *
+     * @return string|null
+     */
+    public function get($placeholder);
+
+    /**
+     * Set placeholder's value
+     *
+     * @param string      $placeholder
+     * @param string|null $value
+     *
+     * @return string|null
+     */
+    public function set($placeholder, $value = null);
+
+    /**
+     * Flush cache
+     */
+    public function flush();
+}