16.3. Shared Cache Loaders
A shared cache loader is a cache loader that is shared by multiple cache instances.
A cache loader is useful when all instances in a cluster communicate with the same remote, shared database using the same JDBC settings. In such an instance, configuring a shared cache loader prevents the unnecessary repeated write operations that occur when various cache instances attempt to write the same data to the cache loader.
16.3.1. Enable Shared Cache Loaders Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
Library Mode
In Red Hat JBoss Data Grid's Library mode, toggle cache loader sharing using the shared parameter within the loader element. This parameter is set to FALSE as a default. Enable cache loader sharing by setting the shared parameter to TRUE.
Remote Client-Server Mode
In JBoss Data Grid's Remote Client-Server mode, toggle cache loader sharing using the shared parameter within the store element. This parameter is set to FALSE as a default. Enable cache loader sharing by setting the shared parameter to TRUE. For example:
<jdbc-store shared="true"> ... </jdbc-store>
<jdbc-store shared="true">
...
</jdbc-store>