| 程序包 | 说明 |
|---|---|
| cn.sliew.milky.common.cache.local | |
| cn.sliew.milky.common.unit |
| 限定符和类型 | 方法和说明 |
|---|---|
CacheBuilder<K,V> |
CacheBuilder.setExpireAfterAccess(TimeValue expireAfterAccess)
Sets the amount of time before an entry in the cache expires after it was last accessed.
|
CacheBuilder<K,V> |
CacheBuilder.setExpireAfterWrite(TimeValue expireAfterWrite)
Sets the amount of time before an entry in the cache expires after it was written.
|
| 限定符和类型 | 字段和说明 |
|---|---|
static TimeValue |
TimeValue.MINUS_ONE |
static TimeValue |
TimeValue.ZERO |
| 限定符和类型 | 方法和说明 |
|---|---|
static TimeValue |
TimeValue.parseTimeValue(String sValue) |
static TimeValue |
TimeValue.parseTimeValue(String sValue,
TimeValue defaultValue) |
static TimeValue |
TimeValues.timeValueHours(long hours) |
static TimeValue |
TimeValues.timeValueMillis(long millis) |
static TimeValue |
TimeValues.timeValueMinutes(long minutes) |
static TimeValue |
TimeValues.timeValueNanos(long nanos) |
static TimeValue |
TimeValues.timeValueSeconds(long seconds) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
TimeValue.compareTo(TimeValue timeValue) |
static TimeValue |
TimeValue.parseTimeValue(String sValue,
TimeValue defaultValue) |
Copyright © 2021. All rights reserved.