public class CaffeineCacheOptions<K,V> extends CacheOptions<K,V>
recordStats default true, can't be disabled.CaffeineSpecCacheOptions.WriteMode| 构造器和说明 |
|---|
CaffeineCacheOptions() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object o) |
CaffeineCacheOptions<K,V> |
expireAfterAccess(Duration expireAfterAccess)
Sets cache
expireAfterAccess. |
CaffeineCacheOptions<K,V> |
expireAfterWrite(Duration expireAfterWrite)
Sets cache
expireAfterWrite. |
Duration |
getExpireAfterAccess() |
Duration |
getExpireAfterWrite() |
int |
getInitialCapacity() |
long |
getMaximumSize() |
long |
getMaximumWeight() |
Duration |
getRefreshAfterWrite() |
int |
hashCode() |
CaffeineCacheOptions<K,V> |
initialCapacity(int initialCapacity)
Sets cache
initialCapacity. |
boolean |
isSoftValues() |
boolean |
isWeakKeys() |
boolean |
isWeakValues() |
CaffeineCacheOptions<K,V> |
maximumSize(long maximumSize)
Sets cache
maximumSize. |
CaffeineCacheOptions<K,V> |
maximumWeight(long maximumWeight)
Sets cache
maximumWeight. |
CaffeineCacheOptions<K,V> |
refreshAfterWrite(Duration refreshAfterWrite)
Sets cache
refreshAfterWrite. |
CaffeineCacheOptions<K,V> |
softValues(boolean softValues)
Sets cache
softValues. |
CaffeineCacheOptions<K,V> |
weakKeys(boolean weakKeys)
Sets cache
weakKeys. |
CaffeineCacheOptions<K,V> |
weakValues(boolean weakValues)
Sets cache
weakValues. |
defaults, getLoader, getName, getWriteBehindThreads, getWriteMode, getWriter, loader, name, writeBehindThreads, writeMode, writerpublic CaffeineCacheOptions<K,V> initialCapacity(int initialCapacity)
initialCapacity.initialCapacity - cache initialCapacitypublic int getInitialCapacity()
public CaffeineCacheOptions<K,V> maximumSize(long maximumSize)
maximumSize.maximumSize - cache maximumSizepublic long getMaximumSize()
public CaffeineCacheOptions<K,V> maximumWeight(long maximumWeight)
maximumWeight.maximumWeight - cache maximumWeightpublic long getMaximumWeight()
public CaffeineCacheOptions<K,V> weakKeys(boolean weakKeys)
weakKeys.weakKeys - cache weak key.public boolean isWeakKeys()
public CaffeineCacheOptions<K,V> weakValues(boolean weakValues)
weakValues.weakValues - cache weak value.public boolean isWeakValues()
public CaffeineCacheOptions<K,V> softValues(boolean softValues)
softValues.softValues - cache soft value.public boolean isSoftValues()
public CaffeineCacheOptions<K,V> expireAfterAccess(Duration expireAfterAccess)
expireAfterAccess.expireAfterAccess - duration expire after cache access.public Duration getExpireAfterAccess()
public CaffeineCacheOptions<K,V> expireAfterWrite(Duration expireAfterWrite)
expireAfterWrite.expireAfterWrite - duration expire after cache write.public Duration getExpireAfterWrite()
public CaffeineCacheOptions<K,V> refreshAfterWrite(Duration refreshAfterWrite)
refreshAfterWrite.refreshAfterWrite - duration refresh after cache write.public Duration getRefreshAfterWrite()
public boolean equals(Object o)
equals 在类中 CacheOptions<K,V>public int hashCode()
hashCode 在类中 CacheOptions<K,V>Copyright © 2021. All rights reserved.