malkusch\lock\mutex\MemcacheMutex::__construct PHP Метод

__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.
    public function __construct($name, Memcache $memcache, $timeout = 3)
    {
        parent::__construct($name, $timeout);
        trigger_error("MemcacheMutex has been deprecated in favour of MemcachedMutex.", E_USER_DEPRECATED);
        $this->memcache = $memcache;
    }