Note: JCs
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;
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;
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;
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;
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