Hi Naveen, Taken from CREATE TABLE documentation - see Ignite.addCacheConfiguration parameter
- TEMPLATE=<cache's template name> - case-sensitive name of a cache template registered in Ignite to use as a configuration for the distributed cache that is deployed by the CREATE TABLE command. A template is an instance of the CacheConfiguration class registered with Ignite.addCacheConfiguration in the cluster. Use predefined TEMPLATE=PARTITIONED or TEMPLATE=REPLICATEDtemplates to create the cache with the corresponding replication mode. The rest of the parameters will be those that are defined in the CacheConfiguration object. By default, TEMPLATE=PARTITIONED is used if the template is not specified explicitly. https://apacheignite-sql.readme.io/docs/create-table On Mon, Apr 9, 2018 at 8:49 AM, Naveen <[email protected]> wrote: > Hi Stan > > I wanted to create a cache template with the below > > <bean id="EDIFCacheTemplate" > class="org.apache.ignite.configuration.CacheConfiguration"> > <property name="name" value="EDIFCache*"/> > <property name="cacheMode" > value="PARTITIONED" /> > <property name="backups" value="1" /> > <property name="affinity"> > <bean > class="org.apache.ignite.cache.affinity.rendezvous. > RendezvousAffinityFunction"> > <property > name="excludeNeighbors" value="true"/> > </bean> > </property> > </bean> > > How do I use this template while creating the cache, what is the property I > should set > > <bean > class="org.apache.ignite.configuration.CacheConfiguration"> > <property name="name" value="AccountCache"/> > > > Thanks > Naveen > > > > -- > Sent from: http://apache-ignite-users.70518.x6.nabble.com/ >
