[jboss-user] [JBoss Cache: Core Edition] - Re: Refresh cache from cache loader on demand?

drcallaway do-not-reply at jboss.com
Fri Jun 19 12:13:26 EDT 2009


"mircea.markus" wrote : So you know that data changed in the cache store and want to 'refresh', you cannot do a  cache.remove as this would also remove it from persistent store, right?

Yes. That's exactly the problem. Removing a node from the cache also removes it from the data store. I would like to be able to remove a node from the local in-memory cache and then retrieve it from the data store when it is next requested. It would sure be nice if a node had a "refreshFromCacheLoader()" method or even a "removeFromLocalCache()" method.

Can you say a little more about the Option.suppressPersistence API? How would I use that? Where can I get a reference to the Option object?

Thanks for your suggestions!

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4238817#4238817

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4238817



More information about the jboss-user mailing list