Package org.infinispan.rest.operations
Class CacheOperationsHelper
java.lang.Object
org.infinispan.rest.operations.CacheOperationsHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic CacheControlcalcCacheControl(Date expires) static intcalcFreshness(Date expires) static org.infinispan.metadata.MetadatacreateMetadata(org.infinispan.configuration.cache.Configuration cfg, Long ttl, Long idleTime) static booleanentryFreshEnough(Date entryExpires, OptionalInt minFresh) static <K,V> Long lastModified(org.infinispan.container.entries.InternalCacheEntry<K, V> ice) static OptionalIntstatic booleansupportsExtendedHeaders(RestServerConfiguration restServerConfiguration, String extended)
-
Method Details
-
createMetadata
-
supportsExtendedHeaders
public static boolean supportsExtendedHeaders(RestServerConfiguration restServerConfiguration, String extended) -
calcCacheControl
-
entryFreshEnough
-
calcFreshness
-
minFresh
-
lastModified
public static <K,V> Long lastModified(org.infinispan.container.entries.InternalCacheEntry<K, V> ice)
-