[jboss-user] [JBoss Cache: Core Edition] - Re: Help configuring invalidation to work for me
bstansberry@jboss.com
do-not-reply at jboss.com
Thu Apr 10 14:49:16 EDT 2008
Use the Cache.putForExternalRead() method when you are caching something that was just read from an external authoritative source (aka an RDBMS). If the cache is configured for invalidation, that method will not generate an invalidation msg. Then use put() if you are creating something new or have updated something. That *will* generate an invalidation msg, as it should.
The above is a quick description of how the latest Hibernate 2nd Level Cache impl uses JBC; the putForExternalRead() method was added and tweaked and massaged exactly for your use case. ;)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143287#4143287
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143287
More information about the jboss-user
mailing list