You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by on 2019/10/19 12:44:57 UTC
How to use different ExpiryPolicy for different keys on the same
cache?
Hi,
How to use different ExpiryPolicy for different keys on the same cache?
Re: How to use different ExpiryPolicy for different keys on the same
cache?
Posted by .
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 <18624049226@163.com
> <ma...@163.com>> wrote:
>
> 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)
>> ignite.cache(name).withExpiryPolicy(plc2)
>>
>>
>> On Sat, Oct 19, 2019, 15:51 李玉珏@163 <18624049226@163.com
>> <ma...@163.com>> wrote:
>>
>> Hi,
>>
>> How to use different ExpiryPolicy for different keys on the
>> same cache?
>>
>
>
> --
> Best regards,
> Evgeniy
Re: How to use different ExpiryPolicy for different keys on the same cache?
Posted by Evgeniy Rudenko <e....@gmail.com>.
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 <18...@163.com> wrote:
> 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)
> ignite.cache(name).withExpiryPolicy(plc2)
>
>
> On Sat, Oct 19, 2019, 15:51 李玉珏@163 <18...@163.com> wrote:
>
>> Hi,
>>
>> How to use different ExpiryPolicy for different keys on the same cache?
>>
>>
--
Best regards,
Evgeniy
Re: How to use different ExpiryPolicy for different keys on the same
cache?
Posted by .
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)
> ignite.cache(name).withExpiryPolicy(plc2)
>
>
> On Sat, Oct 19, 2019, 15:51 李玉珏@163 <18624049226@163.com
> <ma...@163.com>> wrote:
>
> Hi,
>
> How to use different ExpiryPolicy for different keys on the same
> cache?
>
Re: How to use different ExpiryPolicy for different keys on the same cache?
Posted by Aleksandr Shapkin <le...@gmail.com>.
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 <18...@163.com> wrote:
> Hi,
>
> How to use different ExpiryPolicy for different keys on the same cache?
>
>