public class TemplateCache extends ReaderCache<Template>
Modifier and Type | Method and Description |
---|---|
protected int |
getEntryWeight(Template template)
Estimation includes the key's overhead, see
EmpiricalWeigher for
an example |
protected boolean |
isSmall(Template template)
Determine whether the entry is small, in which case it can be kept in the fast cache.
|
clear, get, getStats
protected int getEntryWeight(Template template)
ReaderCache
EmpiricalWeigher
for
an examplegetEntryWeight
in class ReaderCache<Template>
protected boolean isSmall(Template template)
ReaderCache
isSmall
in class ReaderCache<Template>
Copyright © 2012-2016 The Apache Software Foundation. All Rights Reserved.