src/Comodojo/Cache/Traits/BasicCacheItemPoolTrait.php 1 location
|
@@ 91-104 (lines=14) @@
|
| 88 |
|
|
| 89 |
|
} |
| 90 |
|
|
| 91 |
|
private function checkQueueNamespace($create = false) { |
| 92 |
|
|
| 93 |
|
$namespace = $this->getNamespace(); |
| 94 |
|
|
| 95 |
|
if ( array_key_exists($namespace, $this->queue) ) { |
| 96 |
|
return true; |
| 97 |
|
} else if ( $create ) { |
| 98 |
|
$this->queue[$namespace] = []; |
| 99 |
|
return true; |
| 100 |
|
} else { |
| 101 |
|
return false; |
| 102 |
|
} |
| 103 |
|
|
| 104 |
|
} |
| 105 |
|
|
| 106 |
|
} |
| 107 |
|
|
src/Comodojo/Cache/Providers/AbstractEnhancedProvider.php 1 location
|
@@ 331-344 (lines=14) @@
|
| 328 |
|
|
| 329 |
|
} |
| 330 |
|
|
| 331 |
|
private function checkQueueNamespace($create = false) { |
| 332 |
|
|
| 333 |
|
$namespace = $this->getNamespace(); |
| 334 |
|
|
| 335 |
|
if ( array_key_exists($namespace, $this->queue) ) { |
| 336 |
|
return true; |
| 337 |
|
} else if ( $create ) { |
| 338 |
|
$this->queue[$namespace] = []; |
| 339 |
|
return true; |
| 340 |
|
} else { |
| 341 |
|
return false; |
| 342 |
|
} |
| 343 |
|
|
| 344 |
|
} |
| 345 |
|
|
| 346 |
|
} |
| 347 |
|
|