mirror of
https://github.com/friendica/friendica
synced 2024-09-25 20:11:21 +02:00
Philipp Holzer
3f0f3b6ae6
- Added $prefix to all CacheDriver - Moved hostname magic to CacheDriver - Added test for getAllKeys()
26 lines
393 B
PHP
26 lines
393 B
PHP
<?php
|
|
|
|
|
|
namespace Friendica\Test\src\Core\Cache;
|
|
|
|
|
|
use Friendica\Core\Cache\CacheDriverFactory;
|
|
|
|
/**
|
|
* @requires extension redis
|
|
*/
|
|
class RedisCacheDriverTest extends MemoryCacheTest
|
|
{
|
|
protected function getInstance()
|
|
{
|
|
$this->cache = CacheDriverFactory::create('redis');
|
|
return $this->cache;
|
|
}
|
|
|
|
public function tearDown()
|
|
{
|
|
$this->cache->clear(false);
|
|
parent::tearDown();
|
|
}
|
|
}
|