Re: How to use different ExpiryPolicy for different keys on the same cache?

2019-10-21 Thread 李玉珏
Oh, I see. Thank you. 在 2019/10/21 下午4:30, Evgeniy Rudenko 写道: Doc is correct. Each ExpiryPolicy contains 3 methods that define it's behaviour based on used operation: getExpiryForCreation() getExpiryForAccess() getExpiryForUpdate() On Sun, Oct 20, 2019 at 3:20 AM 李玉珏@163 <18624049...@163.com

Re: How to use different ExpiryPolicy for different keys on the same cache?

2019-10-21 Thread Evgeniy Rudenko
Doc is correct. Each ExpiryPolicy contains 3 methods that define it's behaviour based on used operation: getExpiryForCreation() getExpiryForAccess() getExpiryForUpdate() On Sun, Oct 20, 2019 at 3:20 AM 李玉珏@163 <18624049...@163.com> wrote: > Hi, > > On the following page: > >

Re: How to use different ExpiryPolicy for different keys on the same cache?

2019-10-19 Thread 李玉珏
Hi, On the following page: https://apacheignite-net.readme.io/docs/expiry-policies It seems that the document is wrong? 在 2019/10/19 下午9:24, Aleksandr Shapkin 写道: You can use withExpiryPolicy method to create different cache instances. Something like ignite.cache(name).withExpiryPolicy(plc1)

Re: How to use different ExpiryPolicy for different keys on the same cache?

2019-10-19 Thread Aleksandr Shapkin
You can use withExpiryPolicy method to create different cache instances. Something like ignite.cache(name).withExpiryPolicy(plc1) ignite.cache(name).withExpiryPolicy(plc2) On Sat, Oct 19, 2019, 15:51 李玉珏@163 <18624049...@163.com> wrote: > Hi, > > How to use different ExpiryPolicy for different

How to use different ExpiryPolicy for different keys on the same cache?

2019-10-19 Thread 李玉珏
Hi, How to use different ExpiryPolicy for different keys on the same cache?