Package graphql.kickstart.servlet.cache
Class CacheReader
- java.lang.Object
-
- graphql.kickstart.servlet.cache.CacheReader
-
public class CacheReader extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CacheReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanresponseFromCache(graphql.kickstart.execution.input.GraphQLInvocationInput invocationInput, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, GraphQLResponseCacheManager cacheManager)Response from cache if possible, if nothing in cache will not produce any response
-
-
-
Method Detail
-
responseFromCache
public boolean responseFromCache(graphql.kickstart.execution.input.GraphQLInvocationInput invocationInput, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, GraphQLResponseCacheManager cacheManager) throws java.io.IOExceptionResponse 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:
java.io.IOException- if can not read value from the cache
-
-