public class AdvancedCache extends AbstractModel
Constructor and Description |
---|
AdvancedCache() |
Modifier and Type | Method and Description |
---|---|
AdvanceCacheRule[] |
getCacheRules()
Get 缓存过期规则
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getIgnoreCacheControl()
Get 强制缓存配置
on:开启
off:关闭
开启时,源站返回 no-cache、no-store 头部时,仍按照缓存过期规则进行节点缓存
默认为关闭状态
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getIgnoreSetCookie()
Get 忽略源站的 Set-Cookie 头部
on:开启
off:关闭
默认为关闭状态
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setCacheRules(AdvanceCacheRule[] CacheRules)
Set 缓存过期规则
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setIgnoreCacheControl(String IgnoreCacheControl)
Set 强制缓存配置
on:开启
off:关闭
开启时,源站返回 no-cache、no-store 头部时,仍按照缓存过期规则进行节点缓存
默认为关闭状态
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setIgnoreSetCookie(String IgnoreSetCookie)
Set 忽略源站的 Set-Cookie 头部
on:开启
off:关闭
默认为关闭状态
注意:此字段可能返回 null,表示取不到有效值。
|
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 AdvanceCacheRule[] getCacheRules()
public void setCacheRules(AdvanceCacheRule[] CacheRules)
CacheRules
- 缓存过期规则
注意:此字段可能返回 null,表示取不到有效值。public String getIgnoreCacheControl()
public void setIgnoreCacheControl(String IgnoreCacheControl)
IgnoreCacheControl
- 强制缓存配置
on:开启
off:关闭
开启时,源站返回 no-cache、no-store 头部时,仍按照缓存过期规则进行节点缓存
默认为关闭状态
注意:此字段可能返回 null,表示取不到有效值。public String getIgnoreSetCookie()
public void setIgnoreSetCookie(String IgnoreSetCookie)
IgnoreSetCookie
- 忽略源站的 Set-Cookie 头部
on:开启
off:关闭
默认为关闭状态
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2020. All rights reserved.