UniqueLock
class UniqueLock (View source)
Properties
protected Repository | $cache | The cache repository implementation. |
Methods
void
bool
acquire(mixed $job)
Attempt to acquire a lock for the given job.
Details
void
__construct(Repository $cache)
Create a new unique lock manager instance.
bool
acquire(mixed $job)
Attempt to acquire a lock for the given job.