src/Comodojo/Cache/Manager.php 1 location
|
@@ 230-252 (lines=23) @@
|
| 227 |
|
|
| 228 |
|
return new Item($key); |
| 229 |
|
|
| 230 |
|
} else { |
| 231 |
|
|
| 232 |
|
foreach ($this->stack as $provider) { |
| 233 |
|
|
| 234 |
|
$item = $provider[0]->hasItem($key); |
| 235 |
|
|
| 236 |
|
if ( $item === true ) { |
| 237 |
|
|
| 238 |
|
// selected provider has no sense in this case |
| 239 |
|
$this->selected = $provider[0]; |
| 240 |
|
|
| 241 |
|
return true; |
| 242 |
|
|
| 243 |
|
} |
| 244 |
|
|
| 245 |
|
} |
| 246 |
|
|
| 247 |
|
// selected provider has no sense in this case |
| 248 |
|
$this->selected = $this->void; |
| 249 |
|
|
| 250 |
|
return false; |
| 251 |
|
|
| 252 |
|
} |
| 253 |
|
|
| 254 |
|
} |
| 255 |
|
|
src/Comodojo/SimpleCache/Manager.php 1 location
|
@@ 326-348 (lines=23) @@
|
| 323 |
|
|
| 324 |
|
return $this->void->getMultiple($key, $default); |
| 325 |
|
|
| 326 |
|
} else { |
| 327 |
|
|
| 328 |
|
foreach ($this->stack as $provider) { |
| 329 |
|
|
| 330 |
|
$item = $provider[0]->has($key); |
| 331 |
|
|
| 332 |
|
if ( $item === true ) { |
| 333 |
|
|
| 334 |
|
// selected provider has no sense in this case |
| 335 |
|
$this->selected = $provider[0]; |
| 336 |
|
|
| 337 |
|
return true; |
| 338 |
|
|
| 339 |
|
} |
| 340 |
|
|
| 341 |
|
} |
| 342 |
|
|
| 343 |
|
// selected provider has no sense in this case |
| 344 |
|
$this->selected = $this->void; |
| 345 |
|
|
| 346 |
|
return false; |
| 347 |
|
|
| 348 |
|
} |
| 349 |
|
|
| 350 |
|
} |
| 351 |
|
|