1<?php
2/**
3 * Cache Interface
4 *
5 * @category  Xamin
6 * @package   Handlebars
7 * @author    fzerorubigd <fzerorubigd@gmail.com>
8 * @author    Behrooz Shabani <everplays@gmail.com>
9 * @copyright 2012 (c) ParsPooyesh Co
10 * @copyright 2013 (c) Behrooz Shabani
11 * @license   MIT
12 * @link      http://voodoophp.org/docs/handlebars
13 */
14
15
16namespace Handlebars;
17
18interface Cache
19{
20
21    /**
22     * Get cache for $name if exist.
23     *
24     * @param string $name Cache id
25     *
26     * @return mixed data on hit, boolean false on cache not found
27     */
28    public function get($name);
29
30    /**
31     * Set a cache
32     *
33     * @param string $name  cache id
34     * @param mixed  $value data to store
35     *
36     * @return void
37     */
38    public function set($name, $value);
39
40    /**
41     * Remove cache
42     *
43     * @param string $name Cache id
44     *
45     * @return void
46     */
47    public function remove($name);
48
49}