8.3.2. Write-Behind Caching Configuration

To configure write-behind caching for any cache store, add the write-behind element to a cache store. The following example illustrates adding the write-behind element to a remote cache store configuration specifically, but can be used with any cache store type in the same manner:
<remote-store cache="default" 
              socket-timeout="60000" 
              tcp-no-delay="true" 
              fetch-state="false" 
              passivation="true" 
              preload="true" 
              purge="false">
	<remote-server outbound-socket-binding="remote-store-hotrod-server" />
	<write-behind flush-lock-timeout="1" 
                      modification-queue-size="1024" 
                      shutdown-timeout="25000" 
                      thread-pool-size="1" />
</remote-store>

Note

This configuration is only used in JBoss Data Grid's Remote Client-Server mode.