friendica-github/tests/src/Core/Cache/RedisCacheDriverTest.php

29 lines
465 B
PHP
Raw Normal View History

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