[infinispan-dev] Retrieval operations with the IGNORE_RETURN_VALUES flag

Dan Berindei dan.berindei at gmail.com
Mon Jun 3 14:01:56 EDT 2013


Fair point... ok, let's leave it as it is now.


On Mon, Jun 3, 2013 at 5:23 PM, Galder Zamarreño <galder at redhat.com> wrote:

>
>
> On Jun 3, 2013, at 11:52 AM, Dan Berindei <dan.berindei at gmail.com> wrote:
>
> > Hi guys
> >
> > CacheLoaderInterceptor and DistributionInterceptor both honour the
> IGNORE_RETURN_VALUES flag for get commands, but I think it would be more
> useful if they ignored it - just like they ignore it for conditional
> commands.
> >
> > That would make it possible for users to only keep a reference to a
> cache.getAdvancedCache().withFlags(IGNORE_RETURN_VALUES) and use it for
> both read and write operations.
> >
> > What do you think?
>
> If I was to take the role of a colleague of the person who's written the
> Infinispan code, it'd be very confused to see a cache reference created
> with IGNORE_RETURN_VALUES being used for a get() operation… I can see
> myself thinking: "Why on earth do you call get with IGNORE_RETURN_VALUES?"
>
> >
> > Cheers
> > Dan
> >
> > _______________________________________________
> > infinispan-dev mailing list
> > infinispan-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/infinispan-dev
>
>
> --
> Galder Zamarreño
> galder at redhat.com
> twitter.com/galderz
>
> Project Lead, Escalante
> http://escalante.io
>
> Engineer, Infinispan
> http://infinispan.org
>
>
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/infinispan-dev/attachments/20130603/40b0ecb8/attachment.html 


More information about the infinispan-dev mailing list