Use eclipselink.multitenant.tenants-share-cache
to specify if multitenant entities will share the L2 cache.
Table 5-66 describes this persistence property's values.
Table 5-66 Valid Values for multitenant.tenants-share-cache
Value | Description |
---|---|
|
Multitenant entities will use an protected cache. |
|
(Default) Multitenant entities will use an isolated cache. |
WARNING:
When this setting is false
, queries that use the cache may return data from other tenants when using the PROTECTED
setting.
Example 5-62 Using multitenant.tenants-share-cache in persistence.xml
<property name="eclipselink.multitenant.tenants-share-cache" value="true" />
For more information, see:
"Using Multitenancy" in Solutions Guide for Oracle TopLink