# Caching

This table lists the properties of the Caching page of the persistence.xml Editor.

Properties of the Caching Page

Property | Description | Default
--- | --- | ---
Default Cache Type | Select one of the following as the Default Cache Type: Soft with Weak Subcache–This option is similar to Weak with Hard Subcache except that it maintains a most frequently used subcache that uses soft references. The size of the subcache is proportional to the size of the identity map. The subcache uses soft references to ensure that these objects are garbage-collected only if the system is low on memory. Use this identity map in most circumstances as a means to control memory used by the cache. Week with Hard Subcache–This option is similar to Soft with Weak subcache except that it maintains a most frequently used subcache that uses hard references. Use this identity map if soft references are not suitable for your platform. Weak–This option is similar to Full, except that objects are referenced using weak references. This option uses less memory than Full, allows complete garbage collection and provides full caching and guaranteed identity. Use this identity map for transactions that, once started, stay on the server side. Soft–This option is similar to Weak except that the map holds the objects using soft references. This identity map enables full garbage collection when memory is low. It provides full caching and guaranteed identity. Full–This option provides full caching and guaranteed identity: all objects are cached and not removed. Note: This process may be memory-intensive when many objects are read. None–This option does not preserve object identity and does not cache objects.This option is not recommended. | Weak with hard subcache
Default Cache Size | Set the size of the cache. | 1000
Default Shared Cache | Specfies if cached instances should be in the shared cache or in a client isolated cache. |
Entity Caching | Specify the entity. |
Cache Type | Select a cache type. See Default Cache |
Cache Size | Set the size of the cache. |
Shared Cache | See Default Shared Cache. |

Note: This page is not available for projects using the Generic platform.