Jan 3rd, 2013, 09:27 AM
ehcache to refresh Issue
Am working on an application that uses ehcache for caching. Application is built on Spring framework and it uses Hibernate.
We use ehcache for caching values from a service call at configured time interval. Issue is that sometimes the service call fails (due to some exception) and it returns an empty response. In such a scenario i need the old value in the cache to be retained, but ehcache clears the old value when it is expired even before it checks for the update.
Is there a way to handle such scenario ? Appreciate any help you can provide.