Ehcache configuration file

Source: Internet
Author: User

<?xml version= "1.0" encoding= "UTF-8"?>

<!--

CacheManager Configuration

==========================

A ehcache.xml is equivalent to a single CacheManager

Learn the instructions below or how the Ehcache framework (EHCACHE.XSD) is configured

System resource identifiers can be specified in this file, and they will be replaced when the configuration is loaded. For example, Multicastgroupport=${multicastgroupport} is replaced by the system properties of the environment variable, or a system attribute is specified using the-dmulticastgroupport=4446 command-line switch.

The properties of <ehcache> are as follows:

* Optional name for Name–cachemanager. This name was initially used primarily for documentation or to identify terracotta cluster status. For the terracotta cluster cache, a set of CacheManager names and cache names uniquely identifies a specific buffer stored in the terracotta cluster storage.

* updatecheck– An optional Boolean identifier that specifies whether this cachemanager checks for a new version of Ehcache over the Internet. If not specifically specified, updatecheck= "true".

* monitoring– An optional setting that determines whether CacheManager should automatically register Sampledcachembean with the system Mbean server. Now, this monitoring. Use only when using the terracotta cluster and using the Terracotta Developer console. With the "AutoDetect" value, the presence of the terracotta cluster will be detected and monitored and activated through the developer console. Other allowable values are: "On" and "off". The default is "AutoDetect". This setting does not have any effect when using JMX monitoring.

* dynamicconfig– An optional setting that allows the dynamic configuration associated with this CacheManager to be inactivated. The default value for this setting is true-for example, dynamic configuration is active. Dynamically configured caches allow their tti, TTL, and maximum disk and in-memory capacity to change at run time through cached configuration objects.

-

<ehcache xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"

xsi:nonamespaceschemalocation= "Ehcache.xsd"

Updatecheck= "true" monitoring= "AutoDetect"

Dynamicconfig= "true" >

<!--

Diskstore Configuration

=======================

Disk storage is optional. Turn off disk storage path creation, explaining the following disk memory elements.

For any cache, if you have activated Overflowtodisk or diskpersistent, configure disk storage.

If he is not configured and creates a cache that requires disk storage, a warning will be issued and Java.io.tmpdir will be used automatically.

Disk storage has only one property-"path". This path is the directory path where the. Data and. index files are created.

If the path is one of the following Java system attributes, he will be replaced by the values in the running VM. For backwards compatibility, these should be specified without being closed by the ${token} substitution syntax.

<

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.