-
Bug
-
Resolution: Done
-
Major
-
1.0.0-CR1
-
None
StatefulTreeCache maintains a Map<GUID, Long> of all beans that is used 1) to drive removal of expired beans, and 2) to provide the answer to the Cache.getTotalSize() management method. Problem is entries will never be removed from this map if @CacheConfig.removalTimeoutSeconds is left at the default value of 0.
Solution is to not use the Map if removalTimeoutSeconds is 0. Implement a different mechanism to answer Cache.getTotalSize().