Fix getAllKeys() method for memcache instances

This commit is contained in:
Philipp Holzer 2019-08-15 13:58:01 +02:00
parent 41e2031e6b
commit e2e109b8c1
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
5 changed files with 108 additions and 17 deletions

View file

@ -21,7 +21,7 @@ class ArrayCache extends Cache implements IMemoryCache
*/
public function getAllKeys($prefix = null)
{
return $this->filterArrayKeysByPrefix($this->cachedData, $prefix);
return $this->filterArrayKeysByPrefix(array_keys($this->cachedData), $prefix);
}
/**