public class CacheConfig extends AbstractModel
Constructor and Description |
---|
CacheConfig() |
CacheConfig(CacheConfig source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
Long |
getHeuristicCacheTime()
Get 单位 秒.
|
String |
getHeuristicCacheTimeSwitch()
Get on 代表开启自定义启发式缓存时间
off 代表关闭自定义启发式缓存时间
|
void |
setHeuristicCacheTime(Long HeuristicCacheTime)
Set 单位 秒.
|
void |
setHeuristicCacheTimeSwitch(String HeuristicCacheTimeSwitch)
Set on 代表开启自定义启发式缓存时间
off 代表关闭自定义启发式缓存时间
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public CacheConfig()
public CacheConfig(CacheConfig source)
public String getHeuristicCacheTimeSwitch()
public void setHeuristicCacheTimeSwitch(String HeuristicCacheTimeSwitch)
HeuristicCacheTimeSwitch
- on 代表开启自定义启发式缓存时间
off 代表关闭自定义启发式缓存时间public Long getHeuristicCacheTime()
public void setHeuristicCacheTime(Long HeuristicCacheTime)
HeuristicCacheTime
- 单位 秒.Copyright © 2022. All rights reserved.