1 | <?php |
||
19 | class DoctrineCacheAdapter implements CacheAdapterInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var Cache |
||
23 | */ |
||
24 | private $cache; |
||
25 | |||
26 | /** |
||
27 | * @param Cache $cache |
||
28 | */ |
||
29 | 54 | public function __construct(Cache $cache) |
|
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | 27 | public function has($id) |
|
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | 18 | public function get($id) |
|
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | */ |
||
53 | 9 | public function set($id, $data, $lifeTime = 0) |
|
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | 9 | public function remove($id) |
|
65 | } |
||
66 |