| 1 |
<?php |
| 2 |
|
| 3 |
/* |
| 4 |
* This file is part of Mustache.php. |
| 5 |
* |
| 6 |
* (c) 2010-2014 Justin Hileman |
| 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 |
/** |
| 13 |
* Mustache Cache interface. |
| 14 |
* |
| 15 |
* Interface for caching and loading Mustache_Template classes |
| 16 |
* generated by the Mustache_Compiler. |
| 17 |
*/ |
| 18 |
interface Mustache_Cache |
| 19 |
{ |
| 20 |
/** |
| 21 |
* Load a compiled Mustache_Template class from cache. |
| 22 |
* |
| 23 |
* @param string $key |
| 24 |
* |
| 25 |
* @return boolean indicates successfully class load |
| 26 |
*/ |
| 27 |
public function load($key); |
| 28 |
|
| 29 |
/** |
| 30 |
* Cache and load a compiled Mustache_Template class. |
| 31 |
* |
| 32 |
* @param string $key |
| 33 |
* @param string $value |
| 34 |
* |
| 35 |
* @return void |
| 36 |
*/ |
| 37 |
public function cache($key, $value); |
| 38 |
} |
| 39 |
|