Annotation Interface AutoConfigureCache
@Target(TYPE)
@Retention(RUNTIME)
@Documented
@Inherited
@ImportAutoConfiguration
public @interface AutoConfigureCache
Annotation that can be applied to a test class to customize the
cache provider. By default, a
NoOpCacheManager is
auto-configured
As for the regular auto-configuration, this has no effect if a custom
CacheManager is defined.
- Since:
- 4.0.0
- Author:
- Phillip Webb, Stephane Nicoll
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionTheCacheTypeto configure, overriding the behavior for testing purposes.
-
Element Details
-
cacheProvider
TheCacheTypeto configure, overriding the behavior for testing purposes.- Returns:
- the cache type to configure
- Default:
NONE
-