Adding possibility to use a different cache-backend for locking and caching

- Renaming *LockDriver to *Lock since it isn't a "driver" anymore
This commit is contained in:
Philipp Holzer
2019-08-04 15:42:39 +02:00
parent 86bf2ee45a
commit 34e4968c06
19 changed files with 149 additions and 64 deletions

View File

@@ -5,7 +5,7 @@ namespace Friendica\Test\src\Core\Lock;
use Friendica\Core\Cache\MemcachedCache;
use Friendica\Core\Config\Configuration;
use Friendica\Core\Lock\CacheLockDriver;
use Friendica\Core\Lock\CacheLock;
use Psr\Log\NullLogger;
/**
@@ -24,6 +24,6 @@ class MemcachedCacheLockTest extends LockTest
$logger = new NullLogger();
return new CacheLockDriver(new MemcachedCache('localhost', $configMock, $logger));
return new CacheLock(new MemcachedCache('localhost', $configMock, $logger));
}
}