Eclipse - Shared Cache Sharing

The secure cache option allows you to exchange objects with a link to isolated objects. Setting cache isolation to PROTECTED for an object allows you to use a shared cache. The protected option is basically the same as the general option, except that the protected objects can relate to isolated objects where shared access cannot.

what is the meaning of this exception. does this make an isolated entity shared if they have a connection with a protected object.

+6
source share
2 answers

A protected option can be used to ensure that read-only objects and requests always copy cached objects. This way you can simulate a data cache with EclipseLink. and copy-only sharing will not be copied.

+1
source

An isolated object is isolated, so it can never be in the shared cache. Protected vs shared affects only the entity to which it is applied, and what links it is allowed to store. References to isolated objects require special processing (and service data), so isolated objects do not fall into the general cache, therefore, shared objects that allow links to isolated objects are given a special designation.

+3
source

Source: https://habr.com/ru/post/986411/


All Articles