Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
CacheLIRS has various means for specifying the weight of an element:
- via setAverageMemory()
- via CacheLIRS.Builder.averageWeight()
- via CacheLIRS.Builder.weigher()
- via the memory argument of put()
It is not clear how this various ways interact which each other when specifying one but not the other and which would take precedence if multiple are specified.
Moreover there is the related CacheStats class, which also require a Weigher. How does that one related to the arguments of the respective cache instance?
tmueller, could you please help clarifying these points? E.g. by expanding on the Javadoc.