Class CacheControl

java.lang.Object
org.infinispan.rest.CacheControl

public class CacheControl extends Object
A helper class for controlling Cache Control headers.
Author:
Sebastian Ɓaskawiec
  • Method Details

    • noCache

      public static CacheControl noCache()
      Returns no-cache header value.
      Returns:
      no-cache header value.
    • maxAge

      public static CacheControl maxAge(int timeInSeconds)
      Returns max-age header value.
      Parameters:
      timeInSeconds - Header value in seconds.
      Returns:
      max-age header value.
    • toString

      public String toString()
      Overrides:
      toString in class Object