- All Implemented Interfaces:
- org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<net.sf.ehcache.CacheManager>, org.springframework.beans.factory.InitializingBean
public class OpenmrsCacheManagerFactoryBean
extends org.springframework.cache.ehcache.EhCacheManagerFactoryBean
This class creates cache configurations from apiCacheConfig.properties files in the classpath. This file should be
created in modules resource directory only. To configure cache in openmrs-core go to ehcache-api.xml.
If the configuration already exists it won't be overridden.
Example content for apiCacheConfig.properties:
userSearchLocales.maxElementsInMemory=500
userSearchLocales.eternal=false
userSearchLocales.timeToIdleSeconds=300
userSearchLocales.timeToLiveSeconds=300
userSearchLocales.memoryStoreEvictionPolicy=LRU