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

__construct() публичный Метод

The Memcached API needs to have at least one server in its pool. I.e. it has to be added with Memcached::addServer().
public __construct ( string $name, Memcached $memcache, integer $timeout = 3 )
$name string The lock name.
$memcache Memcached The connected Memcached API.
$timeout integer The time in seconds a lock expires, default is 3.
    public function __construct($name, Memcached $memcache, $timeout = 3)
    {
        parent::__construct($name, $timeout);
        $this->memcache = $memcache;
    }