|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents caches that hold a limited number of items and remove older items or items that haven't been accessed in a while to make room for new items. MRU stands for Most Recently Used and refers to the algorithm where by the item used the longest ago is the item to be removed for new items. This cache primarily acts the same as other caches, but also provides information about its hit ratio that other caches do not provide.
Method Summary | |
Float |
getHitPercentage()
The percentage of cache lookups that resulted in the item being found. |
Long |
getHits()
The count of times an item was looked up and was in the cache. |
Long |
getMisses()
The count of times an item was looked up and was not in the cache. |
Long |
getSize()
The count of items currently in the cache. |
Methods inherited from interface org.sape.carbon.services.cache.Cache |
refreshAll |
Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from interface org.sape.carbon.services.scheduler.Schedulable |
runScheduledTask |
Method Detail |
public Long getHits()
public Long getMisses()
public Float getHitPercentage()
public Long getSize()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |