You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by Dmitriy Setrakyan <ds...@apache.org> on 2015/03/01 12:18:58 UTC
Time based expiration example
Igniters,
Can anyone who worked on implementing time-based expirations from Jcache
provide XML configuration example here? I am trying to document it.
D.
Re: Time based expiration example
Posted by Semyon Boikov <sb...@gridgain.com>.
Here is an example of configuration where entries expire after 5sec:
<bean class="org.apache.ignite.configuration.CacheConfiguration">
...
<property name="expiryPolicyFactory">
<bean id="expiryPolicy" class="javax.cache.expiry.CreatedExpiryPolicy"
factory-method="factoryOf">
<constructor-arg>
<bean class="javax.cache.expiry.Duration">
<constructor-arg value="MILLISECONDS"/>
<constructor-arg value="5000"/>
</bean>
</constructor-arg>
</bean>
</property>
...
On Sun, Mar 1, 2015 at 2:18 PM, Dmitriy Setrakyan <ds...@apache.org>
wrote:
> Igniters,
>
> Can anyone who worked on implementing time-based expirations from Jcache
> provide XML configuration example here? I am trying to document it.
>
> D.
>