| 1 | <?php |
||
| 12 | class FileCache implements CacheInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Cache storage path |
||
| 16 | * |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $path; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Cache entry file extension |
||
| 23 | * |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $extension = 'annotations'; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * |
||
| 30 | * @param string $path custom sorage path |
||
| 31 | */ |
||
| 32 | public function __construct($path = null) |
||
| 47 | |||
| 48 | public function getKey($docblock) |
||
| 52 | |||
| 53 | public function set($key, array $annotations) |
||
| 60 | |||
| 61 | public function get($key) |
||
| 70 | |||
| 71 | public function clear() |
||
| 77 | |||
| 78 | protected function getFileName($key) |
||
| 82 | |||
| 83 | } |
||
| 84 |