You are here

class Twig_Cache_Null in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/Cache/Null.php \Twig_Cache_Null

Implements a no-cache strategy.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

Expanded class hierarchy of Twig_Cache_Null

File

vendor/twig/twig/lib/Twig/Cache/Null.php, line 17

View source
class Twig_Cache_Null implements Twig_CacheInterface {

  /**
   * {@inheritdoc}
   */
  public function generateKey($name, $className) {
    return '';
  }

  /**
   * {@inheritdoc}
   */
  public function write($key, $content) {
  }

  /**
   * {@inheritdoc}
   */
  public function load($key) {
  }

  /**
   * {@inheritdoc}
   */
  public function getTimestamp($key) {
    return 0;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Twig_Cache_Null::generateKey public function Generates a cache key for the given template class name. Overrides Twig_CacheInterface::generateKey
Twig_Cache_Null::getTimestamp public function Returns the modification timestamp of a key. Overrides Twig_CacheInterface::getTimestamp
Twig_Cache_Null::load public function Loads a template from the cache. Overrides Twig_CacheInterface::load
Twig_Cache_Null::write public function Writes the compiled template to cache. Overrides Twig_CacheInterface::write