[jboss-user] [JBossCache] - CacheLoaderInterceptor behavior
nnnnn
do-not-reply at jboss.com
Wed Jan 16 17:54:38 EST 2008
We're using a custom CacheLoader in a somewhat non-standard way. Our CacheLoader is read-only, and it's designed to get a node from a different server if not on the current server (the difference between it and the TcpDelegatingCacheLoader is that this cacheloader figures out where to go and get it).
What the CacheLoaderInterceptor is doing that we don't want it to do is that when we put an object into a cache and that node doesn't exist in the local cache, it goes to CacheLoader to get that node before proceeding with the put. I understand the thought process behind this - if the CacheLoader is being used as a backing store, then you want to get the node back into memory before adding another key/value pair. However, we're not using it this way. I won't get into the details on why, but what we'd like is to have the CacheLoader "get" only be invoked on an explicit "get", and never on a "put".
Functionally, this won't make a difference, but there will be a performance difference.
Any suggestions on how this can be accomplished?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120669#4120669
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120669
More information about the jboss-user
mailing list