1 | <?php |
||
8 | class DrupalCache extends CacheProvider |
||
9 | { |
||
10 | /** |
||
11 | * @var CacheBackendInterface |
||
12 | */ |
||
13 | private $cache; |
||
14 | |||
15 | /** |
||
16 | * @param CacheBackendInterface $cache |
||
17 | */ |
||
18 | 11 | public function __construct(CacheBackendInterface $cache) |
|
22 | |||
23 | /** |
||
24 | * @inheritdoc |
||
25 | */ |
||
26 | 9 | protected function doFetch($id) |
|
30 | |||
31 | /** |
||
32 | * @inheritdoc |
||
33 | */ |
||
34 | 1 | protected function doContains($id) |
|
38 | |||
39 | /** |
||
40 | * @inheritdoc |
||
41 | */ |
||
42 | 6 | protected function doSave($id, $data, $lifeTime = 0) |
|
53 | |||
54 | /** |
||
55 | * @inheritdoc |
||
56 | */ |
||
57 | 1 | protected function doDelete($id) |
|
63 | |||
64 | /** |
||
65 | * @inheritdoc |
||
66 | */ |
||
67 | 1 | protected function doFlush() |
|
73 | |||
74 | /** |
||
75 | * @inheritdoc |
||
76 | */ |
||
77 | 1 | protected function doGetStats() |
|
81 | } |
||
82 |