Differences
This shows you the differences between two versions of the page.
|
soloistconfigurationapi [2011/06/28 17:58] predrag.radenkovic |
soloistconfigurationapi [2011/06/28 18:00] (current) predrag.radenkovic |
||
|---|---|---|---|
| Line 15: | Line 15: | ||
| ===== enterSOLoistFastMode() vs. leaveSOLoistFastMode() ===== | ===== enterSOLoistFastMode() vs. leaveSOLoistFastMode() ===== | ||
| So-called "fast mode" is the (misleading) name for the following cache configuration: | So-called "fast mode" is the (misleading) name for the following cache configuration: | ||
| - | thread cache > shared cache > dummy ORM | + | thread cache > shared cache > dummy ORM. |
| Therewith, all created objects will end up in the shared cache (no objects will be written to the database), and no objects can be read from the database. | Therewith, all created objects will end up in the shared cache (no objects will be written to the database), and no objects can be read from the database. | ||
| This is typically used during construction of GUI structure. | This is typically used during construction of GUI structure. | ||
| Line 31: | Line 32: | ||
| } | } | ||
| </code> | </code> | ||
| + | |||
| + | ===== freezeSharedCache() vs. thawSharedCache() ===== | ||
| + | "Freezing" shared cache means making the contents of the shared cache immutable. "Thawing" is the opposite. This is often used in combination with the "fast mode". | ||
| + | This is accomplished by replacing the implementation of shared cache. Currently, frozen one is an ImmutablePassThroughSharedCache and the "normal" one is a SharedCache. | ||
| + | |||