此内容没有您所选择的语言版本。
9.2. Configure Invalidation Mode (Remote Client-Server Mode)
Invalidation mode is a clustered mode in Red Hat JBoss Data Grid. Invalidation mode can be added to any cache container using the following procedure:
Procedure 9.1. The invalidation-cache
Element
The
invalidation-cache
element configures settings for the distributed cache using the following parameters:
Add the Cache Name
Thename
parameter provides a unique identifier for the cache.<cache-container name="local" default-cache="default" statistics="true"> <invalidation-cache name="default">
<cache-container name="local" default-cache="default" statistics="true"> <invalidation-cache name="default">
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Set the Clustered Cache Start Mode
Themode
parameter sets the clustered cache mode. Valid values areSYNC
(synchronous) andASYNC
(asynchronous).<cache-container name="local" default-cache="default" statistics="true"> <invalidation-cache name="default" mode="ASYNC">
<cache-container name="local" default-cache="default" statistics="true"> <invalidation-cache name="default" mode="ASYNC">
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Set the Cache Start Mode
Thestart
parameter specifies whether the cache starts when the server starts up or when it is requested or deployed.Copy to Clipboard Copied! Toggle word wrap Toggle overflow Per-cache Statistics
Ifstatistics
are enabled at the container level, per-cache statistics can be selectively disabled for caches that do not require monitoring by setting thestatistics
attribute tofalse
.Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Important
JGroups must be appropriately configured for clustered mode before attempting to load this configuration.
For details about the
cache-container
, locking
, and transaction
elements, see the appropriate chapter.