ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Null.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
20{
21 public function generateKey($name, $className)
22 {
23 return '';
24 }
25
26 public function write($key, $content)
27 {
28 }
29
30 public function load($key)
31 {
32 }
33
34 public function getTimestamp($key)
35 {
36 return 0;
37 }
38}
39
40class_alias('Twig_Cache_Null', 'Twig\Cache\NullCache', false);
An exception for terminatinating execution or to throw for unit testing.
Implements a no-cache strategy.
Definition: Null.php:20
getTimestamp($key)
Returns the modification timestamp of a key.
Definition: Null.php:34
generateKey($name, $className)
Generates a cache key for the given template class name.
Definition: Null.php:21
load($key)
Loads a template from the cache.
Definition: Null.php:30
write($key, $content)
Writes the compiled template to cache.
Definition: Null.php:26
$key
Definition: croninfo.php:18
Interface implemented by cache classes.