| 1 | <?php |
||
| 12 | class Filesystem |
||
| 13 | { |
||
| 14 | private $directory; |
||
| 15 | private $debug; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param $directory string The root cache directory |
||
| 19 | * @param bool $debug |
||
| 20 | */ |
||
| 21 | 1 | public function __construct($directory, $debug = false) |
|
| 26 | |||
| 27 | 1 | public function generateKey($name) |
|
| 33 | |||
| 34 | 1 | public function isFresh($key) |
|
| 39 | |||
| 40 | /** |
||
| 41 | * {@inheritdoc} |
||
| 42 | */ |
||
| 43 | 1 | public function load($key) |
|
| 47 | |||
| 48 | /** |
||
| 49 | * {@inheritdoc} |
||
| 50 | */ |
||
| 51 | 1 | public function write($key, $content, $resources) |
|
| 58 | |||
| 59 | /** |
||
| 60 | * {@inheritdoc} |
||
| 61 | */ |
||
| 62 | public function getTimestamp($key) |
||
| 70 | } |
||
| 71 |