ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vladislav Pyatkov <vldpyat...@gmail.com>
Subject Re: CacheInterceptor with client nodes
Date Tue, 15 Nov 2016 08:43:53 GMT
Hi Igor,

Why don't you implement CacheStore for this behavior?
You should implement own CacheStore and set "Read-Through" as true[1].
At this case all invokes "get" over cache will be reflect on primary node
(into CacheStore), each time when data can not be found on cache.

If you want to decrease live-time of entry into cache, you can use
expiry-policies[2].

[1]:
https://apacheignite.readme.io/docs/persistent-store#read-through-and-write-through
[2]: https://apacheignite.readme.io/docs/expiry-policies

On Tue, Nov 15, 2016 at 11:30 AM, Игорь Гнатюк <gnatyuk.id@gmail.com> wrote:

> Hi,
> I need to call a native function via JNI on every "get" and "put" call to
> a specific cache. The call should be made on a server node, where this
> concrete enrty resides.
>
> 2016-11-15 2:34 GMT+03:00 vkulichenko <valentin.kulichenko@gmail.com>:
>
>> Hi,
>>
>> What exactly are you trying to do? What's the use case?
>>
>> -Val
>>
>>
>>
>> --
>> View this message in context: http://apache-ignite-users.705
>> 18.x6.nabble.com/CacheInterceptor-with-client-nodes-tp8964p8970.html
>> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>>
>
>


-- 
Vladislav Pyatkov

Mime
View raw message