/**
  * @visible for testing.
  * @param Google\Http\Request $request
  * @return Google\Http\Request|bool Returns the cached object or
  * false if the operation was unsuccessful.
  */
 public function getCachedRequest(Request $request)
 {
     if (false === CacheParser::isRequestCacheable($request)) {
         return false;
     }
     return $this->client->getCache()->get($request->getCacheKey());
 }