Package org.infinispan.rest.operations
Class CacheOperationsHelper
- java.lang.Object
-
- org.infinispan.rest.operations.CacheOperationsHelper
-
public class CacheOperationsHelper extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CacheControlcalcCacheControl(java.util.Date expires)static intcalcFreshness(java.util.Date expires)static MetadatacreateMetadata(Configuration cfg, java.lang.Long ttl, java.lang.Long idleTime)static booleanentryFreshEnough(java.util.Date entryExpires, java.util.OptionalInt minFresh)static <K,V>
longlastModified(InternalCacheEntry<K,V> ice)static java.util.OptionalIntminFresh(java.lang.String cacheControl)static booleansupportsExtendedHeaders(RestServerConfiguration restServerConfiguration, java.lang.String extended)
-
-
-
Method Detail
-
createMetadata
public static Metadata createMetadata(Configuration cfg, java.lang.Long ttl, java.lang.Long idleTime)
-
supportsExtendedHeaders
public static boolean supportsExtendedHeaders(RestServerConfiguration restServerConfiguration, java.lang.String extended)
-
calcCacheControl
public static CacheControl calcCacheControl(java.util.Date expires)
-
entryFreshEnough
public static boolean entryFreshEnough(java.util.Date entryExpires, java.util.OptionalInt minFresh)
-
calcFreshness
public static int calcFreshness(java.util.Date expires)
-
minFresh
public static java.util.OptionalInt minFresh(java.lang.String cacheControl)
-
lastModified
public static <K,V> long lastModified(InternalCacheEntry<K,V> ice)
-
-