Package org.infinispan.rest
Class CacheControl
java.lang.Object
org.infinispan.rest.CacheControl
A helper class for controlling Cache Control headers.
- Author:
- Sebastian Ćaskawiec
-
Method Summary
Modifier and TypeMethodDescriptionstatic CacheControl
maxAge
(int timeInSeconds) Returnsmax-age
header value.static CacheControl
noCache()
Returnsno-cache
header value.toString()
-
Method Details
-
noCache
Returnsno-cache
header value.- Returns:
no-cache
header value.
-
maxAge
Returnsmax-age
header value.- Parameters:
timeInSeconds
- Header value in seconds.- Returns:
max-age
header value.
-
toString
-