接口的使用
com.alibaba.nacos.common.cache.Cache
-
使用Cache的程序包 程序包 说明 com.alibaba.nacos.common.cache.builder com.alibaba.nacos.common.cache.decorators com.alibaba.nacos.common.cache.impl -
-
com.alibaba.nacos.common.cache.builder中Cache的使用
返回Cache的com.alibaba.nacos.common.cache.builder中的方法 修饰符和类型 方法 说明 Cache<K,V>CacheBuilder. build()Build the cache according to the builder attribute. -
com.alibaba.nacos.common.cache.decorators中Cache的使用
实现Cache的com.alibaba.nacos.common.cache.decorators中的类 修饰符和类型 类 说明 classAutoExpireCache<K,V>A wrapper that automatically expires the cache.classLruCache<K,V>A wrapper that lru cache.classSynchronizedCache<K,V>A wrapper that thread-safe cache.声明为Cache的com.alibaba.nacos.common.cache.decorators中的字段 修饰符和类型 字段 说明 private Cache<K,V>AutoExpireCache. delegateprivate Cache<K,V>LruCache. delegateprivate Cache<K,V>SynchronizedCache. delegate参数类型为Cache的com.alibaba.nacos.common.cache.decorators中的构造器 构造器 说明 AutoExpireCache(Cache<K,V> delegate, long expireNanos)LruCache(Cache<K,V> delegate, int size)SynchronizedCache(Cache<K,V> delegate) -
com.alibaba.nacos.common.cache.impl中Cache的使用
实现Cache的com.alibaba.nacos.common.cache.impl中的类 修饰符和类型 类 说明 classSimpleCache<K,V>Simple implementation ofCache.
-