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