No specific configuration operations are required to configure a Write-Through or synchronous cache store. All cache stores are Write-Through or synchronous unless explicitly marked as Write-Behind or asynchronous. The following is a sample configuration file of a Write-Through unshared local file cache store:
<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>
</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>
</loader>
</loaders>
</namedCache>
</infinispan>
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow