Interface CacheKeyGenerator


  • public interface CacheKeyGenerator
    CacheKeyGenerator: a helper interface to generate the key that is used to cache this request.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getCacheKey​(jakarta.servlet.ServletContext context, jakarta.servlet.http.HttpServletRequest request)
      getCacheKey: generate the key to be used to cache the response.
    • Method Detail

      • getCacheKey

        String getCacheKey​(jakarta.servlet.ServletContext context,
                           jakarta.servlet.http.HttpServletRequest request)
        getCacheKey: generate the key to be used to cache the response.
        Parameters:
        context - the web application context
        request - incoming HttpServletRequest
        Returns:
        key string used to access the cache entry. if the return value is null, a default key is used.