Annotation 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 Elements
    Modifier and Type
    Optional Element
    Description
    The CacheType to configure, overriding the behavior for testing purposes.
  • Element Details

    • cacheProvider

      @PropertyMapping("spring.cache.type") CacheType cacheProvider
      The CacheType to configure, overriding the behavior for testing purposes.
      Returns:
      the cache type to configure
      Default:
      NONE