2018-07-07 19:46:16 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
namespace Friendica\Test\src\Core\Cache;
|
|
|
|
|
2018-11-05 08:51:35 +01:00
|
|
|
/**
|
|
|
|
* @runTestsInSeparateProcesses
|
|
|
|
* @preserveGlobalState disabled
|
|
|
|
*/
|
2018-07-07 19:46:16 +02:00
|
|
|
use Friendica\Core\Cache\CacheDriverFactory;
|
|
|
|
|
2018-07-18 21:04:18 +02:00
|
|
|
/**
|
|
|
|
* @requires extension redis
|
|
|
|
*/
|
2018-07-07 20:35:42 +02:00
|
|
|
class RedisCacheDriverTest extends MemoryCacheTest
|
2018-07-07 19:46:16 +02:00
|
|
|
{
|
|
|
|
protected function getInstance()
|
|
|
|
{
|
2018-07-18 21:04:18 +02:00
|
|
|
$this->cache = CacheDriverFactory::create('redis');
|
|
|
|
return $this->cache;
|
2018-07-07 19:46:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public function tearDown()
|
|
|
|
{
|
2018-07-18 21:04:18 +02:00
|
|
|
$this->cache->clear(false);
|
2018-07-07 19:46:16 +02:00
|
|
|
parent::tearDown();
|
|
|
|
}
|
|
|
|
}
|