简体   繁体   中英

Apache ignite cache expiry

I am using Apache Ignite in my python project. I am using 'pyignite' client to make a connection. I need to set some expiry time for cache. Also, need to configure system resources for apache ignite. If anyone knows the configuration help me.

You can set expiry in your Ignite XML configuration when starting your server nodes:

<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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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