[infinispan-dev] SKIP_CACHE_STORE usage
Manik Surtani
manik at jboss.org
Mon Aug 9 08:01:00 EDT 2010
On 9 Aug 2010, at 12:57, Sanne Grinovero wrote:
> 2010/8/9 Manik Surtani <manik at jboss.org>:
>> SKIP_STORE should bypass both get and put from the cache store. This is a bug. Your patch is valid, but you would also want to apply the same technique to visitRemoveCommand(), visitReplaceCommand(), visitGetCommand(), etc.
>>
>> Have you created a JIRA for this?
>
> Thanks, now that I know that it's a bug I've opened ISPN-581.
> I could try implementing this one myself, but will need directions on
> how to apply this during batches or transactions: I couldn't retrieve
> the context in the modifications, while each single modification might
> have been invoked with different Flags. Adding the flag to the
> modification container?
The flag gets added to the context as the call exists, regardless if the call is in a batch or transaction. You should just have to interact with the InvocationContext interface.
Cheers
Manik
--
Manik Surtani
manik at jboss.org
Lead, Infinispan
Lead, JBoss Cache
http://www.infinispan.org
http://www.jbosscache.org
More information about the infinispan-dev
mailing list