1 | <?php |
||
11 | class DoctrineCacheBridge implements CacheInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var Cache |
||
15 | */ |
||
16 | private $cache; |
||
17 | |||
18 | /** |
||
19 | * @param Cache $cache |
||
20 | */ |
||
21 | 28 | public function __construct(Cache $cache) |
|
25 | |||
26 | /** |
||
27 | * {@inheritdoc} |
||
28 | */ |
||
29 | 4 | public function get($id) |
|
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | 20 | public function has($id) |
|
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | 20 | public function save($id, $data, $lifeTime = 0) |
|
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | */ |
||
53 | 4 | public function delete($id) |
|
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | 8 | public function deleteAll() |
|
69 | } |
||
70 |