class CacheCommandMutex implements CommandMutex (View source)
| InteractsWithTime |
| Factory | $cache | The cache factory implementation. | |
| string|null | $store | The cache store that should be used. |
| int | secondsUntil(DateTimeInterface|DateInterval|int $delay)
Get the number of seconds until the given DateTime. | from InteractsWithTime |
| int | availableAt(DateTimeInterface|DateInterval|int $delay = 0)
Get the "available at" UNIX timestamp. | from InteractsWithTime |
| DateTimeInterface|int | parseDateInterval(DateTimeInterface|DateInterval|int $delay)
If the given value is an interval, convert it to a DateTime instance. | from InteractsWithTime |
| int | currentTime()
Get the current system time as a UNIX timestamp. | from InteractsWithTime |
| string | runTimeForHumans(float $startTime, float $endTime = null)
Given a start time, format the total run time for human readability. | from InteractsWithTime |
| __construct(Factory $cache)
Create a new command mutex. | ||
| bool | create(Command $command)
Attempt to obtain a command mutex for the given command. | |
| bool | exists(Command $command)
Determine if a command mutex exists for the given command. | |
| bool | forget(Command $command)
Release the mutex for the given command. | |
| string | commandMutexName(Command $command)
Get the isolatable command mutex name. | |
| $this | useStore(string|null $store)
Specify the cache store that should be used. | |
| bool | shouldUseLocks(Store $store)
Determine if the given store should use locks for command mutexes. |
Get the number of seconds until the given DateTime.
Get the "available at" UNIX timestamp.
If the given value is an interval, convert it to a DateTime instance.
Get the current system time as a UNIX timestamp.
Given a start time, format the total run time for human readability.
Create a new command mutex.
Attempt to obtain a command mutex for the given command.
Determine if a command mutex exists for the given command.
Release the mutex for the given command.
Get the isolatable command mutex name.
Specify the cache store that should be used.
Determine if the given store should use locks for command mutexes.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Console/CacheCommandMutex.html