class UniqueLock (View source)
| protected Repository | $cache | The cache repository implementation. |
| void | __construct(Repository $cache)
Create a new unique lock manager instance. | |
| bool | acquire(mixed $job)
Attempt to acquire a lock for the given job. | |
| void | release(mixed $job)
Release the lock for the given job. | |
| string | getKey(mixed $job)
Generate the lock key for the given job. |
Create a new unique lock manager instance.
Attempt to acquire a lock for the given job.
Release the lock for the given job.
Generate the lock key for the given job.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Bus/UniqueLock.html