CachingEnabled
This attribute determines whether data is cached in this region. For example, you might choose to configure the distributed system as a simple messaging service where clients run without a cache.
Note:
You can configure the most common of these options with the predefined region attributes. See Region Shortcuts and the Javadocs for RegionShortcut
.
If CachingEnabled
is false (no caching), an IllegalStateException
is thrown if any of these attributes are set:
- InitialCapacity
-
EntryTimeToLive
under Specifying Expiration Attributes -
EntryIdleTimeout
under Specifying Expiration Attributes - LoadFactor
- ConcurrencyLevel
- LruEntriesLimit
- DiskPolicy
The following declaration enables caching for the region:
<region-attributes caching-enabled="true">
</region-attributes>