Example #1
0
 /**
  * @visible for testing.
  * @param Google_HttpRequest $request
  * @return Google_HttpRequest|bool Returns the cached object or
  * false if the operation was unsuccessful.
  */
 protected function getCachedRequest(Google_HttpRequest $request)
 {
     if (false == Google_CacheParser::isRequestCacheable($request)) {
         false;
     }
     return Google_Client::$cache->get($request->getCacheKey());
 }