The following is a sample configuration file for the Unscheduled Write-Behind strategy in JBoss Data Grid's Library Mode:
<infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:infinispan:config:5.0">
<global />
<default />
<namedCache name="persistentCache">
<loaders shared="false">
<loader class="org.infinispan.loaders.file.FileCacheStore"
fetchPersistentState="true"
ignoreModifications="false"
purgeOnStartup="false">
<properties>
<property name="location"
value="${java.io.tmpdir}" />
</properties>
<async enabled="true" threadPoolSize="10" />
</loader>
</loaders>
</namedCache>
</infinispan>
<infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:infinispan:config:5.0">
<global />
<default />
<namedCache name="persistentCache">
<loaders shared="false">
<loader class="org.infinispan.loaders.file.FileCacheStore"
fetchPersistentState="true"
ignoreModifications="false"
purgeOnStartup="false">
<properties>
<property name="location"
value="${java.io.tmpdir}" />
</properties>
<async enabled="true" threadPoolSize="10" />
</loader>
</loaders>
</namedCache>
</infinispan>
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
The write-behind configuration occurs specifically at the following line in the provided configuration:
<async enabled="true" threadPoolSize="10" />
<async enabled="true" threadPoolSize="10" />
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow