Skip to content

Instantly share code, notes, and snippets.

@tristantarrant
Created November 26, 2013 14:49
Show Gist options
  • Select an option

  • Save tristantarrant/7659587 to your computer and use it in GitHub Desktop.

Select an option

Save tristantarrant/7659587 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:infinispan:config:6.0 http://www.infinispan.org/schemas/infinispan-config-6.0.xsd"
xmlns="urn:infinispan:config:6.0">
<!-- *************************** -->
<!-- System-wide global settings -->
<!-- *************************** -->
<global>
<shutdown hookBehavior="DEFAULT" />
</global>
<!-- ************************************** -->
<!-- Individually configured "named" caches -->
<!-- ************************************** -->
<namedCache name="Local"/>
<namedCache name="LocalLimitWithEviction">
<persistence passivation="false">
<singleFile
fetchPersistentState="true" ignoreModifications="false"
purgeOnStartup="false" location="${java.io.tmpdir}">
</singleFile>
</persistence>
<eviction maxEntries="2" strategy="FIFO" />
</namedCache>
<namedCache name="LocalWithWriteBehind">
<persistence>
<singleFile fetchPersistentState="true" ignoreModifications="false"
purgeOnStartup="false" location="${java.io.tmpdir}">
<!-- write-behind configuration starts here -->
<async enabled="true" threadPoolSize="500" />
<!-- write-behind configuration ends here -->
</singleFile>
</persistence>
</namedCache>
<namedCache name="LocalTX">
<transaction
transactionManagerLookupClass="org.infinispan.transaction.lookup.DummyTransactionManagerLookup" />
</namedCache>
</infinispan>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment