public function isCachable(string $url, string $httpMethod) : bool
    {
        return $httpMethod === ClientInterface::HTTP_GET && $this->getCache() !== null;
    }
public function isCachable(string $url, string $httpMethod) : bool
    {
        return $httpMethod === ClientInterface::HTTP_GET && $this->getCache() !== null;
    }
public function isCachable ( string $ url , string $ httpMethod ) : bool { return $ httpMethod === ClientInterface :: HTTP_GET && $ this -> getCache ( ) !== null ; }
Determine whether cache should be attempted.

@param string $url
@param string $httpMethod
@return bool
@internal param $variables
Determine whether cache should be attempted .