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