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

ArrayLock

Extends

Properties

protected

$store ArrayStore

The parent array cache store.

Default: null

Methods

public

__construct ( $store , $name , $seconds , $owner ) : void

Create a new lock instance.

Parameters

  • $store ArrayStore
  • $name string
  • $seconds int
  • $owner string|null
public

acquire ( ) : bool

Attempt to acquire the lock.

protected

exists ( ) : bool

Determine if the current lock exists.

public

release ( ) : bool

Release the lock.

protected

getCurrentOwner ( ) : string

Returns the owner value written into the driver for this lock.

public

forceRelease ( ) : void

Releases this lock in disregard of ownership.