karthik
karthik

Reputation: 293

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.

Upvotes: 0

Views: 411

Answers (1)

alamar
alamar

Reputation: 19343

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.

Upvotes: 2

Related Questions