class
Illuminate
/
Bus
/
UniqueLock
You are viewing an older version of the documentation. For the latest, please visit master documentation.
UniqueLock
Properties
Methods
public
__construct ( Repository $cache ) : void
Create a new unique lock manager instance.
Parameters
- $cache Repository
public
acquire ( $job ) : bool
Attempt to acquire a lock for the given job.
Parameters
- $job mixed