interface Lock (View source)
mixed | get(callable|null $callback = null) Attempt to acquire the lock. | |
bool | block(int $seconds, callable|null $callback = null) Attempt to acquire the lock for the given number of seconds. | |
void | release() Release the lock. | |
string | owner() Returns the current owner of the lock. | |
void | forceRelease() Releases this lock in disregard of ownership. |
Attempt to acquire the lock.
Attempt to acquire the lock for the given number of seconds.
Release the lock.
Returns the current owner of the lock.
Releases this lock in disregard of ownership.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Contracts/Cache/Lock.html