Enum Class CacheType

java.lang.Object
java.lang.Enum<CacheType>
org.springframework.boot.autoconfigure.cache.CacheType
All Implemented Interfaces:
Serializable, Comparable<CacheType>, Constable

public enum CacheType extends Enum<CacheType>
Supported cache types (defined in order of precedence).
Since:
1.3.0
Author:
Stephane Nicoll, Phillip Webb, EddĂș MelĂ©ndez
  • Enum Constant Details

    • 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.
    • HAZELCAST

      public static final CacheType HAZELCAST
      Hazelcast backed caching.
    • COUCHBASE

      public static final CacheType COUCHBASE
      Couchbase backed caching.
    • INFINISPAN

      public static final CacheType INFINISPAN
      Infinispan backed caching.
    • REDIS

      public static final CacheType REDIS
      Redis backed caching.
    • CACHE2K

      public static final CacheType CACHE2K
      Cache2k 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 Details

    • values

      public static CacheType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

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