mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-08 23:04:26 +02:00
friendica-5847 Console Cache List command doesn't work
- Added $prefix to all CacheDriver - Moved hostname magic to CacheDriver - Added test for getAllKeys()
This commit is contained in:
parent
1551570b7f
commit
3f0f3b6ae6
15 changed files with 131 additions and 48 deletions
|
@ -41,9 +41,17 @@ class RedisCacheDriver extends AbstractCacheDriver implements IMemoryCacheDriver
|
|||
/**
|
||||
* (@inheritdoc)
|
||||
*/
|
||||
public function getAllKeys()
|
||||
public function getAllKeys($prefix = null)
|
||||
{
|
||||
return null;
|
||||
if (empty($prefix)) {
|
||||
$search = '*';
|
||||
} else {
|
||||
$search = $prefix . '*';
|
||||
}
|
||||
|
||||
$list = $this->redis->keys($this->getCacheKey($search));
|
||||
|
||||
return $this->getOriginalKeys($list);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue