| 1 | <?php |
||
| 10 | class CacheManager |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var StorageInterface |
||
| 14 | */ |
||
| 15 | protected $storage; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var bool |
||
| 19 | */ |
||
| 20 | protected $enabled = false; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param StorageInterface $storage |
||
| 24 | */ |
||
| 25 | public function __construct(StorageInterface $storage) |
||
| 29 | |||
| 30 | public function get($key) |
||
| 34 | |||
| 35 | public function save($key, $contents) |
||
| 39 | |||
| 40 | public function has($key) |
||
| 44 | |||
| 45 | public function delete($key) |
||
| 49 | } |
||
| 50 |