| @@ 136-146 (lines=11) @@ | ||
| 133 | /** |
|
| 134 | * {@inheritdoc} |
|
| 135 | */ |
|
| 136 | public function removeItem(string $key): bool |
|
| 137 | { |
|
| 138 | // init |
|
| 139 | $results = []; |
|
| 140 | ||
| 141 | foreach ($this->caches as $cache) { |
|
| 142 | $results[] = $cache->removeItem($key); |
|
| 143 | } |
|
| 144 | ||
| 145 | return \in_array(true, $results, true); |
|
| 146 | } |
|
| 147 | ||
| 148 | /** |
|
| 149 | * {@inheritdoc} |
|
| @@ 165-175 (lines=11) @@ | ||
| 162 | /** |
|
| 163 | * {@inheritdoc} |
|
| 164 | */ |
|
| 165 | public function removeAll(): bool |
|
| 166 | { |
|
| 167 | // init |
|
| 168 | $results = []; |
|
| 169 | ||
| 170 | foreach ($this->caches as $cache) { |
|
| 171 | $results[] = $cache->removeAll(); |
|
| 172 | } |
|
| 173 | ||
| 174 | return \in_array(true, $results, true); |
|
| 175 | } |
|
| 176 | } |
|
| 177 | ||