| 程序包 | 说明 |
|---|---|
| com.alibaba.nacos.common.cache.builder |
| 限定符和类型 | 方法和说明 |
|---|---|
static <K,V> CacheBuilder<K,V> |
CacheBuilder.builder() |
CacheBuilder<K,V> |
CacheBuilder.expireNanos(long duration,
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.
|
Copyright © 2018–2024 Alibaba Group. All rights reserved.