8.3.4. Unscheduled Write-Behind Strategy Library Configuration
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>
The write-behind configuration occurs specifically at the following line in the provided configuration:
<async enabled="true" threadPoolSize="10" />