Class CacheOperationsHelper

java.lang.Object
org.infinispan.rest.operations.CacheOperationsHelper

public class CacheOperationsHelper extends Object
  • Method Details

    • createMetadata

      public static org.infinispan.metadata.Metadata createMetadata(org.infinispan.configuration.cache.Configuration cfg, Long ttl, Long idleTime)
    • supportsExtendedHeaders

      public static boolean supportsExtendedHeaders(RestServerConfiguration restServerConfiguration, String extended)
    • calcCacheControl

      public static CacheControl calcCacheControl(Date expires)
    • entryFreshEnough

      public static boolean entryFreshEnough(Date entryExpires, OptionalInt minFresh)
    • calcFreshness

      public static int calcFreshness(Date expires)
    • minFresh

      public static OptionalInt minFresh(String cacheControl)
    • lastModified

      public static <K, V> Long lastModified(org.infinispan.container.entries.InternalCacheEntry<K,V> ice)