NinjaMutex\Lock\PhpRedisLock::releaseLock PHP Method

releaseLock() public method

Release lock
public releaseLock ( string $name ) : boolean
$name string name of lock
return boolean
    public function releaseLock($name)
    {
        if (isset($this->locks[$name]) && $this->client->del($name)) {
            unset($this->locks[$name]);
            return true;
        }
        return false;
    }