Class EhcacheConfig

    • Constructor Detail

      • EhcacheConfig

        public EhcacheConfig()
    • 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 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.