How To Replicate in disk storage of Ehcache different server disk path

28 views
Skip to first unread message

KarthiK E

unread,
Apr 8, 2020, 10:09:20 AM4/8/20
to ehcache-users
  1. What version of Ehcache you are currently using;

          2.9.0 dependency JAR

  1. Paste the configuration for the Cache/CacheManager you have an issue with;  - 

           <diskStore path="/home/Test/CMS_CACHE_DISK" />

          <transactionManagerLookup class="net.sf.ehcache.transaction.manager.DefaultTransactionManagerLookup" properties="jndiName=java:/TransactionManager" propertySeparator=";"/>

<cacheManagerEventListenerFactory class="" properties=""/>

       <cache name="test" 
maxEntriesLocalHeap="1000" 
maxEntriesLocalDisk="10000" 
eternal="false" 
diskSpoolBufferSizeMB="20" 
timeToIdleSeconds="40000" 
timeToLiveSeconds="35000" 
memoryStoreEvictionPolicy="LFU" 
transactionalMode="off">
<persistence strategy="localTempSwap"/>
</cache>


  1. Add any name and version of other library or framework you use Ehcache with (e.g. Hibernate);
           plain java 8+ webservice
  1. Providing JDK and OS versions maybe useful as well.
           1.8+


Dear Team,
I cached in My single server for UAT environment and the cache memory stored in key and value pair manner, the service working fine, if I am moving to production the server location clustered two different box so that if request comes one server i can cache the data but if request comes second time, the cache might be not available so that , how do we manage this situation for ehcache . please some one suggest me the solution perspective.



Reply all
Reply to author
Forward
0 new messages