99f7a38d324ef02bb0dd60c7ac128b9022b9d5e2
[yaffs-website] / vendor / dflydev / placeholder-resolver / src / Dflydev / PlaceholderResolver / Cache / CacheInterface.php
1 <?php
2
3 /*
4  * This file is a part of dflydev/placeholder-resolver.
5  *
6  * (c) Dragonfly Development Inc.
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 namespace Dflydev\PlaceholderResolver\Cache;
13
14 interface CacheInterface
15 {
16     /**
17      * Does specified placeholder exist?
18      *
19      * @param string $placeholder
20      *
21      * @return bool
22      */
23     public function exists($placeholder);
24
25     /**
26      * Get placeholder's value
27      *
28      * @param string $placeholder
29      *
30      * @return string|null
31      */
32     public function get($placeholder);
33
34     /**
35      * Set placeholder's value
36      *
37      * @param string      $placeholder
38      * @param string|null $value
39      *
40      * @return string|null
41      */
42     public function set($placeholder, $value = null);
43
44     /**
45      * Flush cache
46      */
47     public function flush();
48 }