class
Illuminate
/
Console
/
Scheduling
/
CacheSchedulingMutex
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
CacheSchedulingMutex
Implements
Properties
public
$store string|null
The cache store that should be used.
Default: null
Methods
public
__construct ( Factory $cache ) : void
Create a new scheduling strategy.
Parameters
- $cache Factory
public
create ( Event $event , DateTimeInterface $time ) : bool
Attempt to obtain a scheduling mutex for the given event.
Parameters
- $event Event
- $time DateTimeInterface
public
exists ( Event $event , DateTimeInterface $time ) : bool
Determine if a scheduling mutex exists for the given event.
Parameters
- $event Event
- $time DateTimeInterface
public
useStore ( $store ) : $this
Specify the cache store that should be used.
Parameters
- $store string