class Illuminate / Cache / MemcachedLock

MemcachedLock

Extends

Properties

protected

$memcached Memcached

The Memcached instance.

Default: null

Methods

public

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

Create a new lock instance.

Parameters

  • $memcached Memcached
  • $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 in disregard of ownership.

protected

getCurrentOwner ( ) : mixed

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