CleanUp Lock namespace
- introduce enum Lock - "Type" - Move Lock/Lock to BaseLock
This commit is contained in:
parent
c742c62f0a
commit
41ff43dcdd
6 changed files with 33 additions and 21 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace Friendica\Core\Lock;
|
||||
|
||||
use Friendica\Core\Cache;
|
||||
use Friendica\Core\Cache\Duration;
|
||||
|
||||
/**
|
||||
* Lock Interface
|
||||
|
@ -30,7 +30,7 @@ interface ILock
|
|||
*
|
||||
* @return boolean Was the lock successful?
|
||||
*/
|
||||
public function acquire($key, $timeout = 120, $ttl = Cache\Duration::FIVE_MINUTES);
|
||||
public function acquire($key, $timeout = 120, $ttl = Duration::FIVE_MINUTES);
|
||||
|
||||
/**
|
||||
* Releases a lock if it was set by us
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue