class Illuminate / Cache / CacheLock
You are viewing an older version of the documentation. For the latest, please visit master documentation.

CacheLock

Extends

Properties

protected

$store Store

The cache store implementation.

Default: null

Methods

public

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

Create a new lock instance.

Parameters

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

acquire ( ) : bool

Attempt to acquire the lock.

public

release ( ) : bool

Release the lock.

public

forceRelease ( ) : void

Releases this lock regardless of ownership.

protected

getCurrentOwner ( ) : mixed

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