类 JCache

  • 所有已实现的接口:
    Cache

    public class JCache
    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 jcache, dubbo initialize the instance of this class using JCacheFactory to store method's returns value to server from store without making method call.
    另请参阅:
    Cache, JCacheFactory, AbstractCacheFactory, CacheFilter
    • 构造器详细资料

      • JCache

        public JCache​(URL url)
    • 方法详细资料

      • put

        public void put​(Object key,
                        Object value)
        从接口复制的说明: Cache
        API to store value against a key
        指定者:
        put 在接口中 Cache
        参数:
        key - Unique identifier for the object being store.
        value - Value getting store
      • get

        public Object get​(Object key)
        从接口复制的说明: Cache
        API to return stored value using a key.
        指定者:
        get 在接口中 Cache
        参数:
        key - Unique identifier for cache lookup
        返回:
        Return stored object against key