Precautions for using JCs

Source: Internet
Author: User

Note: JCs

  1. The JCs object is cached to disk and written only when the cache partition performs the dispose () operation or JVM shutdown, rather than saving one write;

  2. If the JCS object is cached on the disk, it may fail to be cached on the disk due to exceptions such as power failure;

  3. The ATTR parameter of the defineregion (string name, icompositecacheattributes cattr, ielementattributes ATTR) method in JCs is not used in implementation. Therefore, you cannot call this method to configure elementattributes for dynamically generating cache partitions, you can only achieve this by passing the elementattributes parameter when the put () cached object;

  4. When the maximum number of cached objects (maxobjects) in the memory is reached, org. apache. JCs. engine. memory. LRU. in the lrumemorycache policy, the last two cached objects are removed by default each time. This creates a strange phenomenon. When maxobjects = 4 and six cached objects are added to the cache, the last cache contains only two cached objects;

  5. In JCs, The getkeys () and getsize () methods are all for cache objects in memeory. To obtain both the keys in memory and disk, you can only use getgroupkeys.

This article from the "Wings Angel" blog, please be sure to keep this source http://99307064.blog.51cto.com/718663/1432996

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.