Méthode | Description | |
---|---|---|
__construct ( string $name, Memcache $memcache, integer $timeout = 3 ) | Sets the lock's name and the connected Memcache API. |
Méthode | Description | |
---|---|---|
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. |