Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Cannot Reproduce
-
jcs-1.3
-
None
-
Windows
Description
Using code based on JSCThrashTest ..
jcs.default=
jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.default.cacheattributes.MaxObjects=10000
jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
If I add 10,000 elements the getListSize() return 9,998 elements.
If I change the MaxObjects to 10002 and add 15 K elements the getListSize() return 10,000 elements.
Is there a good reason I need to add 2 to MaxObjects?
I have scanned the cache and found there is actually 10000 elements when MaxObject is set to 10002