Controls how instances of a class are cached (refer to 2nd Level Cache for more information on the 2nd level cache, and refer to Backend Configurations for information on enabling the 2nd level cache) . This can be set at the datastore and the class level. The value set at datastore level becomes the default for all classes in that datastore. This extension is ignored if a cache is not being used.
|
Copy Code |
<namespace name="BusinessObjects">
<class name="Item">
<extension key="cache-strategy" value="no" />
</class>
</namespace>
|
The valid values for the cache-strategy extension are as follows:
Cache-Strategy |
Description |
no |
Do not cache instances |
yes |
Cache instances |
all |
Read and cache all instances the first time an instance is read. This works well when the number of instances is small as reading them all in bulk is faster than individual on-demand reads. |
By default the cache-strategy is set to "yes".