Null.php 758 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /*
  3. * This file is part of Twig.
  4. *
  5. * (c) 2015 Fabien Potencier
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. /**
  11. * Implements a no-cache strategy.
  12. *
  13. * @author Fabien Potencier <fabien@symfony.com>
  14. */
  15. class Twig_Cache_Null implements Twig_CacheInterface
  16. {
  17. /**
  18. * {@inheritdoc}
  19. */
  20. public function generateKey($name, $className)
  21. {
  22. return '';
  23. }
  24. /**
  25. * {@inheritdoc}
  26. */
  27. public function write($key, $content)
  28. {
  29. }
  30. /**
  31. * {@inheritdoc}
  32. */
  33. public function load($key)
  34. {
  35. }
  36. /**
  37. * {@inheritdoc}
  38. */
  39. public function getTimestamp($key)
  40. {
  41. return 0;
  42. }
  43. }