Class CacheReader

java.lang.Object
graphql.kickstart.servlet.cache.CacheReader

public class CacheReader extends Object
  • Constructor Details

    • CacheReader

      public CacheReader()
  • Method Details

    • responseFromCache

      public boolean responseFromCache(graphql.kickstart.execution.input.GraphQLInvocationInput invocationInput, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, GraphQLResponseCacheManager cacheManager) throws IOException
      Response from cache if possible, if nothing in cache will not produce any response
      Returns:
      true if response was fulfilled from cache, false is cache not found or an error occurred while reading value from cache
      Throws:
      IOException - if can not read value from the cache