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/[email protected]

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


_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to