[Opensymphony-oscache] How to implement write-thru caching with oscache?
pvcache <[email protected]> Mon, 25 Jul 2005 14:13:45 CDT
| Newsgroups | gmane.comp.java.open-symphony.os-cache |
|---|---|
| Message-ID | <30309661.1122319227084.JavaMail.os-j2ee@opensymphony01.contegix.com> |
thanks, that's a good idea, so will this be reloading the cache only when the user goes back to jsp1 (ie when a http request hits jsp1), OR will it reload right away as soon as the cache key gets flushed, case1 - user will have to wait for the cache to reload (the query to finish & return), case2 - user will get updated data from cache right away, I am looking for the behavior in case2 where the cache gets dynamically updated in the background, that will fit my bill perfectly! I am also wondering if the same behavior will apply to a cluster (say 2 tomcats running the webapp), so if user on tomcat1 updates the table, then the cached object on both tomcat1 & tomcat2 can be flushed & reloaded (if they are already present in the cache), now a user on tomcat2 can just get the updated data from the cache, even though data was entered by user on tomcat1. Thanks in advance, appreciate the help. --------------------------------------------------------------------- Posted via Jive Forums http://forums.opensymphony.com/thread.jspa?threadID=4658&messageID=11347#11347