Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util="http://www.springframework.org/schema/util"
- xsi:schemaLocation="
- http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans.xsd
- http://www.springframework.org/schema/util
- http://www.springframework.org/schema/util/spring-util.xsd">
- <bean id="ignite.cfg" class="org.apache.ignite.configuration.IgniteConfiguration">
- <property name="marshaller">
- <bean class="org.apache.ignite.marshaller.optimized.OptimizedMarshaller">
- <property name="requireSerializable" value="true" />
- </bean>
- </property>
- <property name="cacheConfiguration">
- <list>
- <bean id="myCache" class="org.apache.ignite.configuration.CacheConfiguration">
- <property name="name" value="myCache" />
- <property name="cacheMode" value="PARTITIONED" />
- <property name="atomicityMode" value="ATOMIC" />
- <property name="distributionMode" value="PARTITIONED_ONLY" />
- <property name="backups" value="0" />
- <property name="memoryMode" value="OFFHEAP_TIERED"/>
- <property name="offHeapMaxMemory" value="#{81 * 1024L * 1024L * 1024L}" />
- <property name="startSize" value="1000000" />
- <property name="queryIndexEnabled" value="true" />
- <property name="queryConfiguration">
- <bean class="org.apache.ignite.configuration.CacheQueryConfiguration">
- <property name="indexPrimitiveKey" value="true" />
- <property name="indexPrimitiveValue" value="true" />
- </bean>
- </property>
- </bean>
- </list>
- </property>
- </bean>
- </beans>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement