ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
CacheInterface.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of Twig.
5  *
6  * (c) Fabien Potencier
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11 
22 {
31  public function generateKey($name, $className);
32 
39  public function write($key, $content);
40 
46  public function load($key);
47 
55  public function getTimestamp($key);
56 }
57 
58 class_alias('Twig_CacheInterface', 'Twig\Cache\CacheInterface', false);
generateKey($name, $className)
Generates a cache key for the given template class name.
load($key)
Loads a template from the cache.
write($key, $content)
Writes the compiled template to cache.
getTimestamp($key)
Returns the modification timestamp of a key.
if($format !==null) $name
Definition: metadata.php:146
Interface implemented by cache classes.
$key
Definition: croninfo.php:18