类 ThreadLocalCache
- java.lang.Object
-
- org.apache.dubbo.cache.support.threadlocal.ThreadLocalCache
-
- 所有已实现的接口:
Cache
public class ThreadLocalCache 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 threadlocal, dubbo initialize the instance of this class usingThreadLocalCacheFactoryto store method's returns value to server from store without making method call.e.g. <dubbo:service cache="threadlocal" />As this ThreadLocalCache stores key-value in memory without any expiry or delete support per thread wise, if number threads and number of key-value are high then jvm should be configured with appropriate memory.
- 另请参阅:
AbstractCacheFactory,CacheFilter,Cache
-
-
构造器概要
构造器 构造器 说明 ThreadLocalCache(URL url)Taken URL as an argument to create an instance of ThreadLocalCache.
-
-
-
构造器详细资料
-
ThreadLocalCache
public ThreadLocalCache(URL url)
Taken URL as an argument to create an instance of ThreadLocalCache. In this version of implementation constructor argument is not getting used in the scope of this class.- 参数:
url-
-
-