jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig (JIRA) <j...@apache.org>
Subject [jira] [Created] (OAK-4578) Clarify weight related methods/parameters/arguments of the LIRS cache
Date Wed, 20 Jul 2016 09:29:20 GMT
Michael Dürig created OAK-4578:
----------------------------------

             Summary: Clarify weight related methods/parameters/arguments of the LIRS cache
                 Key: OAK-4578
                 URL: https://issues.apache.org/jira/browse/OAK-4578
             Project: Jackrabbit Oak
          Issue Type: Improvement
          Components: core
            Reporter: Michael Dürig
            Assignee: Michael Dürig
             Fix For: 1.5.6


{{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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message