@@ 132-142 (lines=11) @@ | ||
129 | /** |
|
130 | * {@inheritdoc} |
|
131 | */ |
|
132 | public function removeItem(string $key): bool |
|
133 | { |
|
134 | // init |
|
135 | $results = []; |
|
136 | ||
137 | foreach ($this->caches as $cache) { |
|
138 | $results[] = $cache->removeItem($key); |
|
139 | } |
|
140 | ||
141 | return \in_array(true, $results, true); |
|
142 | } |
|
143 | ||
144 | /** |
|
145 | * {@inheritdoc} |
|
@@ 161-171 (lines=11) @@ | ||
158 | /** |
|
159 | * {@inheritdoc} |
|
160 | */ |
|
161 | public function removeAll(): bool |
|
162 | { |
|
163 | // init |
|
164 | $results = []; |
|
165 | ||
166 | foreach ($this->caches as $cache) { |
|
167 | $results[] = $cache->removeAll(); |
|
168 | } |
|
169 | ||
170 | return \in_array(true, $results, true); |
|
171 | } |
|
172 | } |
|
173 |