Enum CacheType

  • All Implemented Interfaces:
    Serializable, Comparable<CacheType>

    public enum CacheType
    extends Enum<CacheType>
    Supported cache types (defined in order of precedence).
    Stephane Nicoll, Phillip Webb, Eddú Meléndez
    • Enum Constant Detail

      • GENERIC

        public static final CacheType GENERIC
        Generic caching using 'Cache' beans from the context.
      • JCACHE

        public static final CacheType JCACHE
        JCache (JSR-107) backed caching.
      • EHCACHE

        public static final CacheType EHCACHE
        EhCache backed caching.

        public static final CacheType HAZELCAST
        Hazelcast backed caching.

        public static final CacheType INFINISPAN
        Infinispan backed caching.

        public static final CacheType COUCHBASE
        Couchbase backed caching.
      • REDIS

        public static final CacheType REDIS
        Redis backed caching.
      • CAFFEINE

        public static final CacheType CAFFEINE
        Caffeine backed caching.
      • SIMPLE

        public static final CacheType SIMPLE
        Simple in-memory caching.
      • NONE

        public static final CacheType NONE
        No caching.
    • Method Detail

      • values

        public static CacheType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CacheType c : CacheType.values())
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CacheType valueOf(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null