<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 12 Oct 2010, at 15:53, Galder Zamarreņo wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi,<br><br>I'd like to list the reasons why we load data from the cache store, if not present in memory, when trying to modify a k/v.<br><br>So far, the most powerful one I've found is when you're dealing with cold caches and you need to return previous value. You definitely need to load first to get previous value before modifying.<br><br>Now, if this is the only situation, it could be optimised by checking whether unreliableReturnValues is on or not.<br></div></blockquote>+1</div><div>What about adding a&nbsp;unreliable_Return_Values flag? This would skip both remote lookup and cache store (when possible).<blockquote type="cite"><div><br>This is somehow linked with the discussion wrt <a href="https://jira.jboss.org/browse/ISPN-693">https://jira.jboss.org/browse/ISPN-693</a> and the previous email thread for <a href="http://lists.jboss.org/pipermail/infinispan-dev/2010-October/006436.html">http://lists.jboss.org/pipermail/infinispan-dev/2010-October/006436.html</a><br><br>I can't think of any other situations right now, but it'd be interesting to know whether anyone knows other (Manik, Mircea?)<br><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" color="#144FAE"><br></font></font></div></blockquote><blockquote type="cite"><div>Any information arising from this thread should be condensed into javadoc for loadIfNeeded method.<br><br>Cheers,<br>--<br>Galder Zamarreņo<br>Sr. Software Engineer<br>Infinispan, JBoss Cache<br><br><br>_______________________________________________<br>infinispan-dev mailing list<br><a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/infinispan-dev<br></div></blockquote></div><br></body></html>