[英]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.