1
0
Fork 0

- Move constants to the "Cache" class (more transparent than inside the interface)

This commit is contained in:
Philipp Holzer 2019-08-04 15:51:49 +02:00
commit 19777baa79
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
18 changed files with 59 additions and 69 deletions

View file

@ -5,7 +5,7 @@ namespace Friendica\Core\Lock;
use Friendica\Core\Cache;
use Friendica\Core\Cache\IMemoryCache;
class CacheLock extends AbstractLock
class CacheLock extends Lock
{
/**
* @var \Friendica\Core\Cache\ICache;

View file

@ -9,7 +9,7 @@ use Friendica\Util\DateTimeFormat;
/**
* Locking driver that stores the locks in the database
*/
class DatabaseLock extends AbstractLock
class DatabaseLock extends Lock
{
/**
* The current ID of the process

View file

@ -9,7 +9,7 @@ namespace Friendica\Core\Lock;
*
* Basic class for Locking with common functions (local acquired locks, releaseAll, ..)
*/
abstract class AbstractLock implements ILock
abstract class Lock implements ILock
{
/**
* @var array The local acquired locks

View file

@ -4,7 +4,7 @@ namespace Friendica\Core\Lock;
use Friendica\Core\Cache;
class SemaphoreLock extends AbstractLock
class SemaphoreLock extends Lock
{
private static $semaphore = [];