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