public class ThreadLocalCache extends Object implements Cache
ThreadLocalCacheFactory to 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.
|
public ThreadLocalCache(URL url)
url - Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.