class
Illuminate
/
Bus
/
UniqueLock
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
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
public
release ( $job ) : void
Release the lock for the given job.
Parameters
- $job mixed
protected
getKey ( $job ) : string
Generate the lock key for the given job.
Parameters
- $job mixed