1
0
Fork 0

CleanUp Lock namespace

- introduce enum Lock - "Type"
- Move Lock/Lock to BaseLock
This commit is contained in:
Philipp Holzer 2020-01-18 20:15:46 +01:00
commit 41ff43dcdd
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
6 changed files with 33 additions and 21 deletions

View file

@ -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