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 <[email protected]>
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.
>