Class CacheConfiguration

java.lang.Object
org.springframework.cache.annotation.CachingConfigurerSupport
es.kukenan.smartfi.microservice.clients.cache.CacheConfiguration
All Implemented Interfaces:
org.springframework.cache.annotation.CachingConfigurer

@Configuration @EnableCaching @RefreshScope public class CacheConfiguration extends org.springframework.cache.annotation.CachingConfigurerSupport
Class cache configuration.
  • Field Details

    • timeToLive

      @Value("${cache.time-to-live}") private int timeToLive
      time-to-live established.
    • userCacheName

      @Value("${cache.name}") private String userCacheName
      cache name established.
    • userSpringCacheName

      @Value("${cache.spring.client}") private String userSpringCacheName
      spring cache name established.
    • hazelcastInstance

      @Autowired @Qualifier("hazelcastInstance") private com.hazelcast.core.HazelcastInstance hazelcastInstance
      HazelcastInstance hazelcastInstance.
    • cacheManager

      private org.springframework.cache.CacheManager cacheManager
      Cache manager.
  • Constructor Details

    • CacheConfiguration

      public CacheConfiguration()
  • Method Details

    • cacheManager

      @Bean 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
    • springCacheManager

      @Bean public org.springframework.cache.CacheManager springCacheManager()
      Spring cache manager.
      Returns:
      spring cache manager
    • cacheResolver

      @Bean 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
    • springCacheResolver

      @Bean public org.springframework.cache.interceptor.CacheResolver springCacheResolver()
      Spring cache resolver.
      Returns:
      spring cache resolver