Enum Class CacheType
- All Implemented Interfaces:
Serializable
,Comparable<CacheType>
,Constable
Supported cache types (defined in order of precedence).
- Since:
- 1.3.0
- Author:
- Stephane Nicoll, Phillip Webb, EddĂș MelĂ©ndez
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCache2k backed caching.Caffeine backed caching.Couchbase backed caching.Generic caching using 'Cache' beans from the context.Hazelcast backed caching.Infinispan backed caching.JCache (JSR-107) backed caching.No caching.Redis backed caching.Simple in-memory caching. -
Method Summary
-
Enum Constant Details
-
GENERIC
Generic caching using 'Cache' beans from the context. -
JCACHE
JCache (JSR-107) backed caching. -
HAZELCAST
Hazelcast backed caching. -
COUCHBASE
Couchbase backed caching. -
INFINISPAN
Infinispan backed caching. -
REDIS
Redis backed caching. -
CACHE2K
Cache2k backed caching. -
CAFFEINE
Caffeine backed caching. -
SIMPLE
Simple in-memory caching. -
NONE
No caching.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-