You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Aurora <25...@qq.com> on 2017/11/19 15:43:36 UTC

Custom Expiry Policies ?

Hello guys.
a tough task comes. As you know every entity is created at different moment.
After I load them into the Cache, I hope they have different expiry duration
in the cache.
give me a hint to realize Custom Expiry Policies, thanks.





--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Custom Expiry Policies ?

Posted by Denis Mekhanikov <dm...@gmail.com>.
Sorry, I provided the same link twice.
This is a link to ExpiryPolicy interface JavaDoc:
https://static.javadoc.io/javax.cache/cache-api/1.0.0/javax/cache/expiry/ExpiryPolicy.html

Denis

пн, 20 нояб. 2017 г. в 13:08, Denis Mekhanikov <dm...@gmail.com>:

> Hi!
>
> Here is description of expiry policies, that are implemented in Ignite:
> https://apacheignite.readme.io/docs/expiry-policies.
> In most cases it will be enough just to choose one of them and configure
> it properly.
> But you can also implement it yourself and provide it to cache
> configuration. Here is the interface that you should implement:
> https://apacheignite.readme.io/docs/expiry-policies
>
> Denis
>
> вс, 19 нояб. 2017 г. в 18:43, Aurora <25...@qq.com>:
>
>> Hello guys.
>> a tough task comes. As you know every entity is created at different
>> moment.
>> After I load them into the Cache, I hope they have different expiry
>> duration
>> in the cache.
>> give me a hint to realize Custom Expiry Policies, thanks.
>>
>>
>>
>>
>>
>> --
>> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>>
>

Re: Custom Expiry Policies ?

Posted by Denis Mekhanikov <dm...@gmail.com>.
Hi!

Here is description of expiry policies, that are implemented in Ignite:
https://apacheignite.readme.io/docs/expiry-policies.
In most cases it will be enough just to choose one of them and configure it
properly.
But you can also implement it yourself and provide it to cache
configuration. Here is the interface that you should implement:
https://apacheignite.readme.io/docs/expiry-policies

Denis

вс, 19 нояб. 2017 г. в 18:43, Aurora <25...@qq.com>:

> Hello guys.
> a tough task comes. As you know every entity is created at different
> moment.
> After I load them into the Cache, I hope they have different expiry
> duration
> in the cache.
> give me a hint to realize Custom Expiry Policies, thanks.
>
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>