Total Complexity | 8 |
Total Lines | 66 |
Duplicated Lines | 0 % |
Coverage | 50% |
Changes | 0 |
1 | <?php |
||
26 | class NotCache extends AbstractCache |
||
27 | { |
||
28 | /** |
||
29 | * Create the default packer for this cache implementation. |
||
30 | * |
||
31 | * @return PackerInterface |
||
32 | */ |
||
33 | protected static function createDefaultPacker(): PackerInterface |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | 1 | public function delete($key) |
|
42 | { |
||
43 | 1 | return true; |
|
44 | } |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | 1 | public function get($key, $default = null) |
|
52 | } |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | public function getMultiple($keys, $default = null) |
||
58 | { |
||
59 | return false; |
||
60 | } |
||
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | */ |
||
65 | 1 | public function has($key) |
|
66 | { |
||
67 | 1 | return false; |
|
68 | } |
||
69 | |||
70 | /** |
||
71 | * {@inheritdoc} |
||
72 | */ |
||
73 | 3 | public function set($key, $value, $ttl = null) |
|
76 | } |
||
77 | |||
78 | /** |
||
79 | * {@inheritdoc} |
||
80 | */ |
||
81 | public function setMultiple($values, $ttl = null) |
||
82 | { |
||
83 | return false; |
||
84 | } |
||
85 | |||
86 | /** |
||
87 | * {@inheritdoc} |
||
88 | */ |
||
89 | public function clear() |
||
92 | } |
||
93 | } |
||
94 |