src/Comodojo/Cache/Manager.php 1 location
|
@@ 207-220 (lines=14) @@
|
| 204 |
|
|
| 205 |
|
return new Item($key); |
| 206 |
|
|
| 207 |
|
} else { |
| 208 |
|
|
| 209 |
|
foreach ($this->stack as $provider) { |
| 210 |
|
|
| 211 |
|
$result[] = $provider[0]->hasItem($key); |
| 212 |
|
|
| 213 |
|
// selected provider has no sense in this case |
| 214 |
|
$this->selected = $provider[0]; |
| 215 |
|
|
| 216 |
|
} |
| 217 |
|
|
| 218 |
|
return !in_array(false, $result); |
| 219 |
|
|
| 220 |
|
} |
| 221 |
|
|
| 222 |
|
} |
| 223 |
|
|
src/Comodojo/SimpleCache/Manager.php 1 location
|
@@ 278-291 (lines=14) @@
|
| 275 |
|
|
| 276 |
|
// return array_combine($key, array_fill(0, count($key), $default)); |
| 277 |
|
|
| 278 |
|
} else { |
| 279 |
|
|
| 280 |
|
foreach ($this->stack as $provider) { |
| 281 |
|
|
| 282 |
|
$result[] = $provider[0]->has($key); |
| 283 |
|
|
| 284 |
|
// selected provider has no sense in this case |
| 285 |
|
$this->selected = $provider[0]; |
| 286 |
|
|
| 287 |
|
} |
| 288 |
|
|
| 289 |
|
return !in_array(false, $result); |
| 290 |
|
|
| 291 |
|
} |
| 292 |
|
|
| 293 |
|
} |
| 294 |
|
|