...
Code Block |
---|
|
<?xml version="1.0" encoding="UTF-8"?>
<AllCaches>
<Cache Id="MY_CACHE_ID" Scope="application" Preload="Y">
<Handler>com.intellectdesign.myapp.MyCacheSourceHandler</Handler>
<HandlerParams>
<Param Name="MY_PARAM_1">Param 1 Value</Param>
<Param Name="MY_PARAM_2">Param 2 Value</Param>
</HandlerParams>
</Cache>
</AllCaches> |
Let us look at each of the element of the Cache Management XML.
...
Code Block |
---|
|
<?xml version="1.0" encoding="UTF-8"?>
<AllCaches>
<Cache Id="MY_CACHE_ID" Scope="application" Preload="Y" ExpiryInterval="10000" Validating="N">
</Cache>
</AllCaches> |
The options Preload, ExpiryInterval, and Validating are not applicable for caches defined with the scope as session. If provided, these are ignored.
...
Code Block |
---|
|
<?xml version="1.0" encoding="UTF-8"?>
<AllCaches>
<Cache Id="MY_CACHE_ID" Scope="application" Preload="Y" ExpiryInterval="10000" Validating="N">
<Handler>com.intellectdesign.myapp.MyCacheSourceHandler</Handler>
</Cache>
</AllCaches> |
XML Element: HandlerParams
...
Code Block |
---|
|
<?xml version="1.0" encoding="UTF-8"?>
<AllCaches>
<Cache Id="MY_CACHE_ID" Scope="application" Preload="Y" ExpiryInterval="10000" Validating="N">
<Handler>com.intellectdesign.myapp.MyCacheSourceHandler</Handler>
<HandlerParams>
<Param Name="MY_PARAM_1">Param 1 Value</Param>
<Param Name="MY_PARAM_2">Param 2 Value</Param>
</HandlerParams>
</Cache>
</AllCaches> |