Package ubic.gemma.persistence.cache
Class EhcacheConfig
- java.lang.Object
-
- ubic.gemma.persistence.cache.EhcacheConfig
-
@Configuration public class EhcacheConfig extends Object
-
-
Constructor Summary
Constructors Constructor Description EhcacheConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FactoryBean<net.sf.ehcache.CacheManager>
ehcache(String gemmaCacheDir)
The ehcache.xml assume that-Dehcache.disk.store.dir
is set.
-
-
-
Method Detail
-
ehcache
@Bean public 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 thegemma.cache.dir
configuration.The Ehcache cache manager is shared so that it can be reused by Hibernate.
This definition is also reused by gsec.
-
-