[英]Apache ignite cache expiry
我在我的 python 项目中使用 Apache Ignite。 我正在使用“pyignite”客户端建立连接。 我需要为缓存设置一些到期时间。 另外,需要为apache ignite配置系统资源。 如果有人知道配置帮助我。
您可以在启动服务器节点时在您的Ignite XML 配置中设置过期时间:
<bean class="org.apache.ignite.configuration.CacheConfiguration">
...
<property name="expiryPolicyFactory">
<bean class="javax.cache.expiry.CreatedExpiryPolicy" factory-method="factoryOf">
<constructor-arg>
<bean class="javax.cache.expiry.Duration">
<constructor-arg value="MINUTES"/>
<constructor-arg value="5"/>
</bean>
</constructor-arg>
</bean>
</property>
</bean>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.