class Illuminate / Console / CacheCommandMutex
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

CacheCommandMutex

Implements

Uses

Properties

public

$cache Factory

The cache factory implementation.

Default: null
public

$store string|null

The cache store that should be used.

Default: null

Methods

public

__construct ( Factory $cache ) : void

Create a new command mutex.

Parameters

public

create ( $command ) : bool

Attempt to obtain a command mutex for the given command.

Parameters

public

exists ( $command ) : bool

Determine if a command mutex exists for the given command.

Parameters

public

forget ( $command ) : bool

Release the mutex for the given command.

Parameters

protected

commandMutexName ( $command ) : string

Get the isolatable command mutex name.

Parameters

public

useStore ( $store ) : $this

Specify the cache store that should be used.

Parameters

  • $store string|null
protected

shouldUseLocks ( $store ) : bool

Determine if the given store should use locks for command mutexes.

Parameters