CacheCommandMutex
class CacheCommandMutex implements CommandMutex (View source)
Properties
| Factory | $cache | The cache factory implementation. |
|
| string|null | $store | The cache store that should be used. |
Methods
Details
__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.
protected string
commandMutexName(Command $command)
No description
$this
useStore(string|null $store)
Specify the cache store that should be used.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.