PHP 클래스 malkusch\lock\mutex\MemcacheMutex

사용 중단: 1.0.0 Use MemcachedMutex together with ext-memcached.
저자: Markus Malkusch ([email protected])
상속: extends SpinlockMutex
파일 보기 프로젝트 열기: malkusch/lock

공개 메소드들

메소드 설명
__construct ( string $name, Memcache $memcache, integer $timeout = 3 ) Sets the lock's name and the connected Memcache API.

보호된 메소드들

메소드 설명
acquire ( $key, $expire )
release ( $key )

메소드 상세

__construct() 공개 메소드

The Memcache API needs to be connected to a server. I.e. Memcache::connect() was already called.
public __construct ( string $name, Memcache $memcache, integer $timeout = 3 )
$name string The lock name.
$memcache Memcache The connected Memcache API.
$timeout integer The time in seconds a lock expires, default is 3.

acquire() 보호된 메소드

protected acquire ( $key, $expire )

release() 보호된 메소드

protected release ( $key )