| 1 | <?php |
||
| 9 | class DoctrineCache implements StoreInterface |
||
| 10 | { |
||
| 11 | /** @var Cache */ |
||
| 12 | protected $cache; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param Cache $cache |
||
| 16 | */ |
||
| 17 | public function __construct(Cache $cache) |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param string $id |
||
| 24 | * @return bool|mixed |
||
| 25 | */ |
||
| 26 | public function fetch($id) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $id |
||
| 33 | * @param mixed $data |
||
| 34 | * @param int $lifeTime |
||
| 35 | * @return bool |
||
| 36 | */ |
||
| 37 | public function save($id, $data, $lifeTime) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param string $id |
||
| 44 | * @return bool |
||
| 45 | */ |
||
| 46 | public function delete($id) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return Cache |
||
| 53 | */ |
||
| 54 | public function getCache() |
||
| 58 | } |
||
| 59 |