Class AdvancedCache
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.cdn.v20180606.models.AdvancedCache
-
public class AdvancedCache extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description AdvancedCache()
AdvancedCache(AdvancedCache 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdvanceCacheRule[]
getCacheRules()
Get 缓存过期规则 注意:此字段可能返回 null,表示取不到有效值。String
getIgnoreCacheControl()
Get 强制缓存配置 on:开启 off:关闭 开启时,源站返回 no-cache、no-store 头部时,仍按照缓存过期规则进行节点缓存 默认为关闭状态 注意:此字段可能返回 null,表示取不到有效值。String
getIgnoreSetCookie()
Get 当源站返回Set-Cookie头部时,节点是否缓存该头部及body on:开启,不缓存该头部及body 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头部时,节点是否缓存该头部及body on:开启,不缓存该头部及body off:关闭,遵循用户自定义的节点缓存规则 默认为关闭状态 注意:此字段可能返回 null,表示取不到有效值。void
toMap(HashMap<String,String> map, String prefix)
Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
AdvancedCache
public AdvancedCache()
-
AdvancedCache
public AdvancedCache(AdvancedCache 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.
-
-
Method Detail
-
getCacheRules
public AdvanceCacheRule[] getCacheRules()
Get 缓存过期规则 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- CacheRules 缓存过期规则 注意:此字段可能返回 null,表示取不到有效值。
-
setCacheRules
public void setCacheRules(AdvanceCacheRule[] CacheRules)
Set 缓存过期规则 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
CacheRules
- 缓存过期规则 注意:此字段可能返回 null,表示取不到有效值。
-
getIgnoreCacheControl
public String getIgnoreCacheControl()
Get 强制缓存配置 on:开启 off:关闭 开启时,源站返回 no-cache、no-store 头部时,仍按照缓存过期规则进行节点缓存 默认为关闭状态 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- IgnoreCacheControl 强制缓存配置 on:开启 off:关闭 开启时,源站返回 no-cache、no-store 头部时,仍按照缓存过期规则进行节点缓存 默认为关闭状态 注意:此字段可能返回 null,表示取不到有效值。
-
setIgnoreCacheControl
public void setIgnoreCacheControl(String IgnoreCacheControl)
Set 强制缓存配置 on:开启 off:关闭 开启时,源站返回 no-cache、no-store 头部时,仍按照缓存过期规则进行节点缓存 默认为关闭状态 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
IgnoreCacheControl
- 强制缓存配置 on:开启 off:关闭 开启时,源站返回 no-cache、no-store 头部时,仍按照缓存过期规则进行节点缓存 默认为关闭状态 注意:此字段可能返回 null,表示取不到有效值。
-
getIgnoreSetCookie
public String getIgnoreSetCookie()
Get 当源站返回Set-Cookie头部时,节点是否缓存该头部及body on:开启,不缓存该头部及body off:关闭,遵循用户自定义的节点缓存规则 默认为关闭状态 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- IgnoreSetCookie 当源站返回Set-Cookie头部时,节点是否缓存该头部及body on:开启,不缓存该头部及body off:关闭,遵循用户自定义的节点缓存规则 默认为关闭状态 注意:此字段可能返回 null,表示取不到有效值。
-
setIgnoreSetCookie
public void setIgnoreSetCookie(String IgnoreSetCookie)
Set 当源站返回Set-Cookie头部时,节点是否缓存该头部及body on:开启,不缓存该头部及body off:关闭,遵循用户自定义的节点缓存规则 默认为关闭状态 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
IgnoreSetCookie
- 当源站返回Set-Cookie头部时,节点是否缓存该头部及body on:开启,不缓存该头部及body off:关闭,遵循用户自定义的节点缓存规则 默认为关闭状态 注意:此字段可能返回 null,表示取不到有效值。
-
-