public class Cache extends AbstractModel
header, skipSign
Constructor and Description |
---|
Cache() |
Cache(Cache 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 |
getCacheTime()
Get 缓存过期时间设置。
单位为秒,最大可设置为 365 天。
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getIgnoreCacheControl()
Deprecated.
|
String |
getSwitch()
Get 缓存配置开关,取值有:
on:开启;
off:关闭。
|
void |
setCacheTime(Long CacheTime)
Set 缓存过期时间设置。
单位为秒,最大可设置为 365 天。
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setIgnoreCacheControl(String IgnoreCacheControl)
Deprecated.
|
void |
setSwitch(String Switch)
Set 缓存配置开关,取值有:
on:开启;
off:关闭。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public Cache()
public Cache(Cache source)
public String getSwitch()
public void setSwitch(String Switch)
Switch
- 缓存配置开关,取值有:
public Long getCacheTime()
public void setCacheTime(Long CacheTime)
CacheTime
- 缓存过期时间设置。
单位为秒,最大可设置为 365 天。
注意:此字段可能返回 null,表示取不到有效值。@Deprecated public String getIgnoreCacheControl()
@Deprecated public void setIgnoreCacheControl(String IgnoreCacheControl)
IgnoreCacheControl
- 是否开启强制缓存,取值有:
Copyright © 2024. All rights reserved.