Hello,
I have an application that uses a bunch of custom infinispan caches +/- 10 which use the same configuration values for indexing and persistence. Is there a way to provide a default configuration instead of repeating it on each cache definition?
The container configuration looks like this:
<cache-container name="myCustomContainer" default-cache="cache1" start="EAGER">
<local-cache name="cache1" start="EAGER">
<eviction strategy="LIRS" max-entries="15000"/>
<string-keyed-jdbc-store preload="true" passivation="false" purge="false" datasource="java:jboss/datasources/CacheDS">
<string-keyed-table>
<data-column name="DATA_COLUMN" type="BYTEA"/>
</string-keyed-table>
</string-keyed-jdbc-store>
<indexing index="ALL">
<property name="hibernate.search.default.directory_provider">
infinispan
</property>
<property name="hibernate.search.lucene_version">
LUCENE_36
</property>
</indexing>
</local-cache>
<local-cache name="cache2" start="EAGER">
<eviction strategy="LIRS" max-entries="15000"/>
<string-keyed-jdbc-store preload="true" passivation="false" purge="false" datasource="java:jboss/datasources/CacheDS">
<string-keyed-table>
<data-column name="DATA_COLUMN" type="BYTEA"/>
</string-keyed-table>
</string-keyed-jdbc-store>
<indexing index="ALL">
<property name="hibernate.search.default.directory_provider">
infinispan
</property>
<property name="hibernate.search.lucene_version">
LUCENE_36
</property>
</indexing>
</local-cache>
<local-cache name="cache3" start="EAGER">
// Ditto...
</local-cache>
.
.
.
</cache-container>
Cheers,