java - Refreshing Caches while under load with Spring/EHCache - Stack Overflow
There are two Ehcache provided constructs that could help you:
- Refresh ahead
- Scheduled refresh
Both require you to change the way you interact with your cache as they require a CacheLoader
to be configured.
Unfortunately, I can't find online documentation that shows example for the second option. It allows to refresh cache entries using Quartz to schedule it. It can also refresh only a subset of the keys, based on a key generator. Have a look at classes in package net.sf.ehcache.constructs.scheduledrefresh
Read full article from java - Refreshing Caches while under load with Spring/EHCache - Stack Overflow
No comments:
Post a Comment