ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From afedotov <alexander.fedot...@gmail.com>
Subject Re: PeerClassLoading example using cacheLoaders
Date Mon, 14 Aug 2017 18:21:59 GMT
Hi,

You are right, *load* method is called when there is a miss in a cache.
putIfAbsent is supported by IgniteCache out of the box. I'm afraid that
there is no simple way to achieve what
a CacheStore offers. With any other approach, you would have to sacrifice
read/write-through behavior.


Kind regards,
Alex.

On Sat, Aug 12, 2017 at 8:39 AM, daniels [via Apache Ignite Users] <
ml+s70518n16149h53@n6.nabble.com> wrote:

> Thank you,very much.
>
> And one more question, The  load method  of cacheLoader is called when I
> do get from cache with the key which does not exists. Isn't it?
>
>  Isnt it solution without passing chacheLoader   -I do get and if the key
> is  absent ,do put that key in the cache,in other words do  putIfAbsent but
>  in my code ?
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://apache-ignite-users.70518.x6.nabble.com/PeerClassLoading-example-
> using-cacheLoaders-tp16136p16149.html
> To start a new topic under Apache Ignite Users, email
> ml+s70518n1h65@n6.nabble.com
> To unsubscribe from Apache Ignite Users, click here
> <http://apache-ignite-users.70518.x6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=1&code=YWxleGFuZGVyLmZlZG90b2ZmQGdtYWlsLmNvbXwxfC0xMzYxNTU0NTg=>
> .
> NAML
> <http://apache-ignite-users.70518.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/PeerClassLoading-example-using-cacheLoaders-tp16136p16177.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Mime
View raw message