Dmitriy,

This design is unfortunate, but I understand the reason. My issue is not with 
performance impact of serialization, but with having to make my key/value 
serializable which is not always possible nor desirable. Well, back to Guava's 
Cache!

Thanks
Andrey

> From: dsetrak...@apache.org
> Date: Thu, 5 Nov 2015 17:34:28 -0800
> Subject: Re: LOCAL cache serializes the entries?
> To: dev@ignite.apache.org
> 
> On Thu, Nov 5, 2015 at 6:44 AM, Andrey Kornev <andrewkor...@hotmail.com>
> wrote:
> 
> > Hello,
> >
> > It seems that even if the cache is configured as LOCAL, the entries are
> > nevertheless stored in serialized form. If that's the case, could someone
> > explain the reasons?
> >
> 
> Andrey, JCache has pass-by-value semantics by default, which means that
> whenever you do a get from cache, you have to get a copy of the value, not
> the same reference. To achieve that, we must serialize value on Put, so
> that we can deserialize it on Get and get a different copy.
> 
> You have an option to set copyOnGet parameter to false, in which case
> Ignite will cache the deserialized reference after the 1st Get.
> 
> 
> >
> > Regards
> > Andrey
> >
                                          

Reply via email to