Class GlobalCacheConfig

java.lang.Object
com.easydesk.cache.config.GlobalCacheConfig

@Configuration @EnableScheduling @ComponentScan(basePackageClasses=GlobalCacheService.class) public class GlobalCacheConfig extends Object
Wires up the global cache module. Import this (or copy @EnableScheduling onto your own application config) so that JCSCacheService's housekeeping sweep actually runs -- without @EnableScheduling somewhere in the context, @Scheduled methods are silently never called.
  • Constructor Details

    • GlobalCacheConfig

      public GlobalCacheConfig()
  • Method Details

    • cachedAdvisor

      @Bean public org.springframework.aop.Advisor cachedAdvisor(CachedAspect cachedAspect)