public class LfuCache extends Object implements Cache
LfuCacheFactory to store method's returns value
to server from store without making method call.
e.g. 1) <dubbo:service cache="lfu" cache.size="5000" cache.evictionFactor="0.3"/>
2) <dubbo:consumer cache="lfu" />
LfuCache uses url's cache.size value for its max store size, url's cache.evictionFactor value for its eviction factor, default store size value will be 1000, default eviction factor will be 0.3
| 构造器和说明 |
|---|
LfuCache(URL url)
Initialize LfuCache, it uses constructor argument cache.size value as its storage max size.
|
public LfuCache(URL url)
url - A valid URL instanceCopyright © 2011–2021 The Apache Software Foundation. All rights reserved.