public class CacheConfigCache extends AbstractModel
Constructor and Description |
---|
CacheConfigCache() |
CacheConfigCache(CacheConfigCache 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 Cache expiration time settings
Unit: second.
|
String |
getCompareMaxAge()
Get Advanced cache expiration configuration.
|
String |
getIgnoreCacheControl()
Get Force cache
on: enable
off: disable
This is disabled by default.
|
String |
getIgnoreSetCookie()
Get Whether to ignore the header and body on cache nodes if the origin server returns the header `Set-Cookie`.
|
String |
getSwitch()
Get Cache configuration switch
on: enable
off: disable
Note: this field may return null, indicating that no valid value is obtained.
|
void |
setCacheTime(Long CacheTime)
Set Cache expiration time settings
Unit: second.
|
void |
setCompareMaxAge(String CompareMaxAge)
Set Advanced cache expiration configuration.
|
void |
setIgnoreCacheControl(String IgnoreCacheControl)
Set Force cache
on: enable
off: disable
This is disabled by default.
|
void |
setIgnoreSetCookie(String IgnoreSetCookie)
Set Whether to ignore the header and body on cache nodes if the origin server returns the header `Set-Cookie`.
|
void |
setSwitch(String Switch)
Set Cache configuration switch
on: enable
off: disable
Note: this field may return null, indicating that no valid value is obtained.
|
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 CacheConfigCache()
public CacheConfigCache(CacheConfigCache source)
public String getSwitch()
public void setSwitch(String Switch)
Switch
- Cache configuration switch
on: enable
off: disable
Note: this field may return null, indicating that no valid value is obtained.public Long getCacheTime()
public void setCacheTime(Long CacheTime)
CacheTime
- Cache expiration time settings
Unit: second. The maximum value is 365 days.
Note: this field may return null, indicating that no valid value is obtained.public String getCompareMaxAge()
public void setCompareMaxAge(String CompareMaxAge)
CompareMaxAge
- Advanced cache expiration configuration. If this is enabled, the max-age value returned by the origin server will be compared with the cache expiration time set in CacheRules, and the smallest value will be cached on the node.
on: enable
off: disable
This is disabled by default.
Note: this field may return null, indicating that no valid value is obtained.public String getIgnoreCacheControl()
public void setIgnoreCacheControl(String IgnoreCacheControl)
IgnoreCacheControl
- Force cache
on: enable
off: disable
This is disabled by default. If enabled, the `no-store` and `no-cache` resources returned from the origin server will be cached according to `CacheRules` rules.
Note: this field may return null, indicating that no valid value is obtained.public String getIgnoreSetCookie()
public void setIgnoreSetCookie(String IgnoreSetCookie)
IgnoreSetCookie
- Whether to ignore the header and body on cache nodes if the origin server returns the header `Set-Cookie`.
`on`: Ignore; do not cache the header and body.
`off`: Do not ignore; follow the custom cache rules of cache nodes.
It is disabled by default.
Note: This field may return `null`, indicating that no valid value can be obtained.Copyright © 2021. All rights reserved.