Class EhcacheConfig


  • @Configuration
    public class EhcacheConfig
    extends Object
    • Constructor Detail

      • EhcacheConfig

        public EhcacheConfig()
    • Method Detail

      • ehcache

        @Bean
        public org.springframework.beans.factory.FactoryBean<net.sf.ehcache.CacheManager> ehcache​(@Value("${gemma.cache.dir}")
                                                                                                  String gemmaCacheDir)
        The ehcache.xml assume that -Dehcache.disk.store.dir is set. If not set explicitly as a JVM option, we retrieve the value from the gemma.cache.dir configuration.

        The Ehcache cache manager is shared so that it can be reused by Hibernate.

        This definition is also reused by gsec.