wb-2_10_x/trunk/include/Sensio/Twig/lib/Twig/Cache/Null.php @ 2
| 1 |
<?php
|
|---|---|
| 2 |
|
| 3 |
/*
|
| 4 |
* This file is part of Twig.
|
| 5 |
*
|
| 6 |
* (c) 2015 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 |
/**
|
| 13 |
* Implements a no-cache strategy.
|
| 14 |
*
|
| 15 |
* @author Fabien Potencier <fabien@symfony.com>
|
| 16 |
*/
|
| 17 |
class Twig_Cache_Null implements Twig_CacheInterface |
| 18 |
{
|
| 19 |
/**
|
| 20 |
* {@inheritdoc}
|
| 21 |
*/
|
| 22 |
public function generateKey($name, $className) |
| 23 |
{
|
| 24 |
return ''; |
| 25 |
}
|
| 26 |
|
| 27 |
/**
|
| 28 |
* {@inheritdoc}
|
| 29 |
*/
|
| 30 |
public function write($key, $content) |
| 31 |
{
|
| 32 |
}
|
| 33 |
|
| 34 |
/**
|
| 35 |
* {@inheritdoc}
|
| 36 |
*/
|
| 37 |
public function load($key) |
| 38 |
{
|
| 39 |
}
|
| 40 |
|
| 41 |
/**
|
| 42 |
* {@inheritdoc}
|
| 43 |
*/
|
| 44 |
public function getTimestamp($key) |
| 45 |
{
|
| 46 |
return 0; |
| 47 |
}
|
| 48 |
}
|
- « Previous
- 1
- 2
- Next »