Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame^] | 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 | |
| 12 | namespace Twig\Cache; |
| 13 | |
| 14 | /** |
| 15 | * Implements a no-cache strategy. |
| 16 | * |
| 17 | * @author Fabien Potencier <fabien@symfony.com> |
| 18 | */ |
| 19 | final class NullCache implements CacheInterface |
| 20 | { |
| 21 | public function generateKey(string $name, string $className): string |
| 22 | { |
| 23 | return ''; |
| 24 | } |
| 25 | |
| 26 | public function write(string $key, string $content): void |
| 27 | { |
| 28 | } |
| 29 | |
| 30 | public function load(string $key): void |
| 31 | { |
| 32 | } |
| 33 | |
| 34 | public function getTimestamp(string $key): int |
| 35 | { |
| 36 | return 0; |
| 37 | } |
| 38 | } |