1 | <?php |
||
19 | class BlackHole implements Driver |
||
20 | { |
||
21 | |||
22 | /** |
||
23 | * {@inheritdoc} |
||
24 | * |
||
25 | * @var \Endeveit\Cache\Interfaces\Serializer |
||
26 | */ |
||
27 | protected $serializer = null; |
||
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | * |
||
32 | * @param string $id |
||
33 | * @param integer|null $lockTimeout |
||
34 | * @return mixed|false Data on success, false on failure |
||
35 | */ |
||
36 | public function load($id, $lockTimeout = null) |
||
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | * |
||
44 | * @param array $identifiers |
||
45 | * @return array |
||
46 | */ |
||
47 | public function loadMany(array $identifiers) |
||
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | * |
||
58 | * @param mixed $data |
||
59 | * @param string $id |
||
60 | * @param array $tags |
||
61 | * @param integer|boolean $lifetime |
||
62 | * @return boolean |
||
63 | */ |
||
64 | public function save($data, $id, array $tags = array(), $lifetime = false) |
||
68 | |||
69 | /** |
||
70 | * {@inheritdoc} |
||
71 | * |
||
72 | * @param string $id |
||
73 | * @return boolean |
||
74 | */ |
||
75 | public function remove($id) |
||
79 | |||
80 | /** |
||
81 | * {@inheritdoc} |
||
82 | * |
||
83 | * @param array $tags |
||
84 | * @return boolean |
||
85 | */ |
||
86 | public function removeByTags(array $tags) |
||
90 | |||
91 | /** |
||
92 | * {@inheritdoc} |
||
93 | * |
||
94 | * @param string $id |
||
95 | * @param integer $extraLifetime |
||
96 | * @return boolean |
||
97 | */ |
||
98 | public function touch($id, $extraLifetime) |
||
102 | |||
103 | /** |
||
104 | * {@inheritdoc} |
||
105 | * |
||
106 | * @param string $id |
||
107 | * @param integer $value |
||
108 | * @return integer |
||
109 | */ |
||
110 | public function increment($id, $value = 1) |
||
114 | |||
115 | /** |
||
116 | * {@inheritdoc} |
||
117 | * |
||
118 | * @param string $id |
||
119 | * @param integer $value |
||
120 | * @return integer |
||
121 | */ |
||
122 | public function decrement($id, $value = 1) |
||
126 | |||
127 | /** |
||
128 | * {@inheritdoc} |
||
129 | * |
||
130 | * @param string $id |
||
131 | * @return boolean |
||
132 | */ |
||
133 | public function contains($id) |
||
137 | |||
138 | /** |
||
139 | * {@inheritdoc} |
||
140 | * |
||
141 | * @return boolean |
||
142 | */ |
||
143 | public function flush() |
||
147 | |||
148 | /** |
||
149 | * {@inheritdoc} |
||
150 | * |
||
151 | * @param \Endeveit\Cache\Interfaces\Serializer $serializer |
||
152 | * @return void |
||
153 | */ |
||
154 | public function setSerializer(Serializer $serializer) |
||
158 | |||
159 | /** |
||
160 | * {@inheritdoc} |
||
161 | * |
||
162 | * @return \Endeveit\Cache\Interfaces\Serializer |
||
163 | */ |
||
164 | public function getSerializer() |
||
172 | } |
||
173 |