Class CacheConfiguration


  • public class CacheConfiguration
    extends Object
    Cache-related configuration.
    • Constructor Detail

      • CacheConfiguration

        public CacheConfiguration()
    • Method Detail

      • setMaxAge

        public void setMaxAge​(int maxAge)
        Set the cache max-age value.
        Parameters:
        maxAge - the cache max age header value
      • getMaxAge

        public int getMaxAge()
        Get the value of the cache max age.
        Returns:
        the cache max age header value
      • setMustRevalidate

        public void setMustRevalidate​(boolean mustRevalidate)
        Set the cache must-revalidate value.
        Parameters:
        mustRevalidate - the cache must-revalidate header value
      • getMustRevalidate

        public boolean getMustRevalidate()
        Get the value of the must-revalidate value.
        Returns:
        the must-revalidate value
      • setNoCache

        public void setNoCache​(boolean noCache)
        Set the no-cache value.
        Parameters:
        noCache - the no-cache header value
      • getNoCache

        public boolean getNoCache()
        Get the value of the no-cache value.
        Returns:
        the no-cache value