Метод | Описание | |
---|---|---|
__construct ( string $name, Memcache $memcache, integer $timeout = 3 ) | Sets the lock's name and the connected Memcache API. |
Метод | Описание | |
---|---|---|
acquire ( $key, $expire ) | ||
release ( $key ) |
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. |