类的使用
com.alibaba.nacos.common.cache.builder.CacheBuilder
-
使用CacheBuilder的程序包 程序包 说明 com.alibaba.nacos.common.cache.builder -
-
com.alibaba.nacos.common.cache.builder中CacheBuilder的使用
返回CacheBuilder的com.alibaba.nacos.common.cache.builder中的方法 修饰符和类型 方法 说明 static <K,V>
CacheBuilder<K,V>CacheBuilder. builder()CacheBuilder<K,V>CacheBuilder. expireNanos(long duration, java.util.concurrent.TimeUnit unit)Set expiration time.CacheBuilder<K,V>CacheBuilder. initializeCapacity(int initializeCapacity)Set the initial capacity of the cache pair.CacheBuilder<K,V>CacheBuilder. lru(boolean lru)Does the constructed cache support lru.CacheBuilder<K,V>CacheBuilder. maximumSize(int maximumSize)Set the maximum capacity of the cache pair.CacheBuilder<K,V>CacheBuilder. sync(boolean sync)Set whether the cache method is synchronized.
-