[jboss-user] [JBoss Cache] New message: "Re: How to manage empty data with a CacheLoader?"

Manik Surtani do-not-reply at jboss.com
Thu Feb 4 10:56:56 EST 2010


User development,

A new message was posted in the thread "How to manage empty data with a CacheLoader?":

http://community.jboss.org/message/524198#524198

Author  : Manik Surtani
Profile : http://community.jboss.org/people/manik.surtani@jboss.com

Message:
--------------------------------------------------------------
One approach you could use - and this would be a hack - is that *if* you are aware of the keys/nodes used and know that a get() will result in a cache miss, you could pass in a flag to bypass the cache loading from the store altogether.  
 
There is a http://www.jboss.org/file-access/default/members/jbosscache/freezone/docs/3.2.1.GA/apidocs/org/jboss/cache/config/Option.html#setSuppressPersistence(boolean) in place to suppress persistence, and you could use this same flag in a subclass of the CacheLoaderInterceptor to bypass loading if this option is set, and then use your subclass interceptor in place of the CacheLoaderInterceptor.

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/524198#524198




More information about the jboss-user mailing list