此内容没有您所选择的语言版本。
4.2. About Cache Containers
Cache containers are used in JBoss Data Grid's Remote Client-Server mode as a starting point for a cache. The
cache-container element acts as a parent of one or more (local or clustered) caches. To add clustered caches to the container, transport must be defined.
The following is a sample cache container configuration:
<subsystem xmlns="urn:infinispan:server:core:5.2"
default-cache-container="default">
<cache-container name="default"
default-cache="default"
listener-executor="infinispan-listener"
start="EAGER">
<local-cache ... >
...
</local-cache>
</cache-container>
</subsystem>
The
cache-container element specifies information about the cache container using the following parameters:
- The
nameparameter defines the name of the cache container. - The
default-cacheparameter defines the name of the default cache used with the cache container. - The
listener-executordefines the executor used for asynchronous cache listener notifications. - The
startparameter indicates when the cache container starts, i.e. whether it will start lazily when requested or "eagerly" when the server starts up. Valid values for this parameter areEAGERandLAZY.