public function isLocked(Request $request)
    {
        $cacheKey = $this->getCacheKey($request);

        if (!isset($this->locks[$cacheKey])) {
            return false;
        }

        return $this->locks[$cacheKey]->isAcquired();
    }
public function isLocked(Request $request)
    {
        $cacheKey = $this->getCacheKey($request);

        if (!isset($this->locks[$cacheKey])) {
            return false;
        }

        return $this->locks[$cacheKey]->isAcquired();
    }
public function isLocked ( Request $ request ) { $ cacheKey = $ this -> getCacheKey ( $ request ) ; if ( ! isset ( $ this -> locks [ $ cacheKey ] ) ) { return false ; } return $ this -> locks [ $ cacheKey ] -> isAcquired ( ) ; }
Returns whether or not a lock exists.

@param Request $request A Request instance

@return bool true if lock exists, false otherwise
Returns whether or not a lock exists .