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
12namespace Twig\Cache;
13
14/**
15 * Implements a no-cache strategy.
16 *
17 * @final
18 *
19 * @author Fabien Potencier <fabien@symfony.com>
20 */
21class NullCache implements CacheInterface
22{
23    public function generateKey($name, $className)
24    {
25        return '';
26    }
27
28    public function write($key, $content)
29    {
30    }
31
32    public function load($key)
33    {
34    }
35
36    public function getTimestamp($key)
37    {
38        return 0;
39    }
40}
41
42class_alias('Twig\Cache\NullCache', 'Twig_Cache_Null');
43