NinjaMutex\Lock\PhpRedisLock::getLock PHP 메소드

getLock() 보호된 메소드

protected getLock ( string $name, boolean $blocking ) : boolean
$name string
$blocking boolean
리턴 boolean
    protected function getLock($name, $blocking)
    {
        if (!$this->client->setnx($name, serialize($this->getLockInformation()))) {
            return false;
        }
        return true;
    }