Home
6.5.2 Cache instance definition
The root element of the cachespec.xml file is cache and contains cache-instance and cache-entry elements. The cache-entry elements can also be placed inside cache-instance elements to make that cache entry part of a cache instance that is different from the default.
Each cache-instance element must contain at least one cache-entry element. A cache entry that is matched within a cache-instance element is cached in the servlet cache instance that is specified by the name attribute. If identical cache-entry elements exist across cache-instance elements, the first cache-entry element that is matched is used.
Define multiple cache instances
<cache> <cache-instance name="cache_instance_1"> <cache-entry> ... </cache-entry> </cache-instance> <cache-instance name="cache_instance_2"> <cache-entry> ... </cache-entry> ... </cache-instance> </cache>