简体   繁体   English

Apache 点燃缓存到期

[英]Apache ignite cache expiry

I am using Apache Ignite in my python project.我在我的 python 项目中使用 Apache Ignite。 I am using 'pyignite' client to make a connection.我正在使用“pyignite”客户端建立连接。 I need to set some expiry time for cache.我需要为缓存设置一些到期时间。 Also, need to configure system resources for apache ignite.另外,需要为apache ignite配置系统资源。 If anyone knows the configuration help me.如果有人知道配置帮助我。

You can set expiry in your Ignite XML configuration when starting your server nodes:您可以在启动服务器节点时在您的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>

System resources are configured by adjusting data region size and thread pools size .通过调整数据区域大小线程池大小来配置系统资源。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM