Total Complexity | 7 |
Total Lines | 53 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class ZendDataCache extends CacheProvider |
||
16 | { |
||
17 | /** |
||
18 | * {@inheritdoc} |
||
19 | */ |
||
20 | protected function doFetch($id) |
||
21 | { |
||
22 | return zend_shm_cache_fetch($id); |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * {@inheritdoc} |
||
27 | */ |
||
28 | protected function doContains($id) |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * {@inheritdoc} |
||
35 | */ |
||
36 | protected function doSave($id, $data, $lifeTime = 0) |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | protected function doDelete($id) |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * {@inheritdoc} |
||
51 | */ |
||
52 | protected function doFlush() |
||
53 | { |
||
54 | $namespace = $this->getNamespace(); |
||
55 | if (empty($namespace)) { |
||
56 | return zend_shm_cache_clear(); |
||
57 | } |
||
58 | |||
59 | return zend_shm_cache_clear($namespace); |
||
60 | } |
||
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | */ |
||
65 | protected function doGetStats() |
||
68 | } |
||
69 | } |
||
70 |