Package graphql.kickstart.servlet.cache
Class CacheReader
java.lang.Object
graphql.kickstart.servlet.cache.CacheReader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
responseFromCache
(graphql.kickstart.execution.input.GraphQLInvocationInput invocationInput, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, GraphQLResponseCacheManager cacheManager) Response from cache if possible, if nothing in cache will not produce any response
-
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
-