4 * This file is a part of dflydev/placeholder-resolver.
6 * (c) Dragonfly Development Inc.
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Dflydev\PlaceholderResolver\Cache;
14 interface CacheInterface
17 * Does specified placeholder exist?
19 * @param string $placeholder
23 public function exists($placeholder);
26 * Get placeholder's value
28 * @param string $placeholder
32 public function get($placeholder);
35 * Set placeholder's value
37 * @param string $placeholder
38 * @param string|null $value
42 public function set($placeholder, $value = null);
47 public function flush();