src/Comodojo/Cache/Manager.php 1 location
|
@@ 213-226 (lines=14) @@
|
210 |
|
|
211 |
|
return new Item($key); |
212 |
|
|
213 |
|
} else { |
214 |
|
|
215 |
|
foreach ( $this->stack as $provider ) { |
216 |
|
|
217 |
|
$result[] = $provider[0]->hasItem($key); |
218 |
|
|
219 |
|
// selected provider has no sense in this case |
220 |
|
$this->selected = $provider[0]; |
221 |
|
|
222 |
|
} |
223 |
|
|
224 |
|
return !in_array(false, $result); |
225 |
|
|
226 |
|
} |
227 |
|
|
228 |
|
} |
229 |
|
|
src/Comodojo/SimpleCache/Manager.php 1 location
|
@@ 288-301 (lines=14) @@
|
285 |
|
|
286 |
|
// return array_combine($key, array_fill(0, count($key), $default)); |
287 |
|
|
288 |
|
} else { |
289 |
|
|
290 |
|
foreach ( $this->stack as $provider ) { |
291 |
|
|
292 |
|
$result[] = $provider[0]->has($key); |
293 |
|
|
294 |
|
// selected provider has no sense in this case |
295 |
|
$this->selected = $provider[0]; |
296 |
|
|
297 |
|
} |
298 |
|
|
299 |
|
return !in_array(false, $result); |
300 |
|
|
301 |
|
} |
302 |
|
|
303 |
|
} |
304 |
|
|