|
@@ -143,7 +143,7 @@ discard block |
|
|
block discarded – undo |
|
143
|
143
|
|
|
144
|
144
|
// Find all keys, iterate and them delete the only ones that starts with the namespace |
|
145
|
145
|
$cacheKeys = $this->memcachedInstance->getAllKeys(); |
|
146
|
|
- $filteredCacheKeys = array_filter($cacheKeys, function ($key) use ($namespace) { |
|
|
146
|
+ $filteredCacheKeys = array_filter($cacheKeys, function($key) use ($namespace) { |
|
147
|
147
|
return strpos($key, $namespace) === 0; |
|
148
|
148
|
}); |
|
149
|
149
|
|
|
@@ -163,7 +163,7 @@ discard block |
|
|
block discarded – undo |
|
163
|
163
|
private function namespacedKey(string $key) : string |
|
164
|
164
|
{ |
|
165
|
165
|
if ($this->namespace !== null) { |
|
166
|
|
- return $this->namespace.$key; |
|
|
166
|
+ return $this->namespace . $key; |
|
167
|
167
|
} |
|
168
|
168
|
|
|
169
|
169
|
return $key; |
Please login to merge, or discard this patch.