类 LruCache
- java.lang.Object
-
- org.apache.dubbo.cache.support.lru.LruCache
-
- 所有已实现的接口:
Cache
public class LruCache extends Object implements Cache
This class store the cache value per thread. If a service,method,consumer or provided is configured with key cache with value lru, dubbo initialize the instance of this class usingLruCacheFactoryto 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
public LruCache(URL url)
Initialize LruCache, it uses constructor argument cache.size value as its storage max size. If nothing is provided then it will use 1000 as default value.- 参数:
url- A valid URL instance
-
-