Spec-Zone.ru › Laravel 8

UniqueLock

class UniqueLock (View source)

Properties

protected Repository $cache

The cache repository implementation.

Methods

void __construct(Repository $cache)

Create a new unique lock manager instance.

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.

Parameters

Repository $cache

Return Value

void

bool acquire(mixed $job)

Attempt to acquire a lock for the given job.

Parameters

mixed $job

Return Value

bool

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Bus/UniqueLock.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API