类 AbstractCacheFactory
- java.lang.Object
-
- org.apache.dubbo.cache.support.AbstractCacheFactory
-
- 所有已实现的接口:
CacheFactory
- 直接已知子类:
ExpiringCacheFactory
,JCacheFactory
,LfuCacheFactory
,LruCacheFactory
,ThreadLocalCacheFactory
public abstract class AbstractCacheFactory extends Object implements CacheFactory
AbstractCacheFactory is a default implementation ofCacheFactory
. It abstract out the key formation from URL along with invocation method. It initially check if the value for key already present in own local in-memory store then it won't check underlying storage cacheCache
. Internally it usedConcurrentHashMap
to store do level-1 caching.
-
-
方法详细资料
-
getCache
public Cache getCache(URL url, Invocation invocation)
Takes URL and invocation instance and return cache instance for a given url.- 指定者:
getCache
在接口中CacheFactory
- 参数:
url
- url of the methodinvocation
- invocation context.- 返回:
- Instance of cache store used as storage for caching return values.
-
-