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

DynamoDbLock

Extends

Properties

protected

$dynamo DynamoDbStore

The DynamoDB client instance.

Default: null

Methods

public

__construct ( DynamoDbStore $dynamo , $name , $seconds , $owner ) : void

Create a new lock instance.

Parameters

public

acquire ( ) : bool

Attempt to acquire the lock.

public

release ( ) : bool

Release the lock.

public

forceRelease ( ) : void

Release this lock in disregard of ownership.

protected

getCurrentOwner ( ) : mixed

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