The following table describes attributes for the cache element. The left column lists the attribute name, the middle column indicates the default value, and the right column describes what the attribute does.
Table 6–26 cache Attributes
Attribute |
Default Value |
Description |
---|---|---|
max-entries |
4096 |
(optional) Specifies the maximum number of entries the cache can contain. Must be a positive integer. |
timeout-in-seconds |
30 |
(optional) Specifies the maximum amount of time in seconds that an entry can remain in the cache after it is created or refreshed. Can be overridden by a timeout element. |
enabled |
false |
(optional) Determines whether servlet and JSP caching is enabled. Legal values are on, off, yes, no, 1, 0, true, false. |