4 namespace Friendica\Test\src\Core\Lock;
7 use Friendica\Core\Cache\CacheDriverFactory;
8 use Friendica\Core\Lock\CacheLockDriver;
11 * @requires extension redis
13 class RedisCacheLockDriverTest extends LockTest
16 * @var \Friendica\Core\Cache\IMemoryCacheDriver
20 protected function getInstance()
22 $this->cache = CacheDriverFactory::create('redis');
23 return new CacheLockDriver($this->cache);
27 public function tearDown()
29 $this->cache->clear();