Class CacheConfiguration

  • All Implemented Interfaces:
    org.springframework.cache.annotation.CachingConfigurer

    @Configuration
    @EnableCaching
    public class CacheConfiguration
    extends org.springframework.cache.annotation.CachingConfigurerSupport
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.cache.CacheManager cacheManager()  
      org.springframework.cache.interceptor.CacheResolver cacheResolver()  
      • Methods inherited from class org.springframework.cache.annotation.CachingConfigurerSupport

        errorHandler, keyGenerator
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CacheConfiguration

        public CacheConfiguration​(CacheProperties properties)
    • Method Detail

      • cacheManager

        @Bean
        @Primary
        public org.springframework.cache.CacheManager cacheManager()
        Specified by:
        cacheManager in interface org.springframework.cache.annotation.CachingConfigurer
        Overrides:
        cacheManager in class org.springframework.cache.annotation.CachingConfigurerSupport
      • cacheResolver

        @Bean
        @Primary
        public org.springframework.cache.interceptor.CacheResolver cacheResolver()
        Specified by:
        cacheResolver in interface org.springframework.cache.annotation.CachingConfigurer
        Overrides:
        cacheResolver in class org.springframework.cache.annotation.CachingConfigurerSupport