Class EhcacheConfig

java.lang.Object
ubic.gemma.persistence.cache.EhcacheConfig

@Configuration public class EhcacheConfig extends Object
  • Constructor Details

    • EhcacheConfig

      public EhcacheConfig()
  • Method Details

    • 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.