public class CacheConfigCache extends AbstractModel
skipSign
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 settingsUnit: second.
|
String |
getCompareMaxAge()
Get Advanced cache expiration configuration.
|
String |
getIgnoreCacheControl()
Get Force cache: on: Enable; off: Disable.
|
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.
|
void |
setCacheTime(Long CacheTime)
Set Cache expiration time settingsUnit: second.
|
void |
setCompareMaxAge(String CompareMaxAge)
Set Advanced cache expiration configuration.
|
void |
setIgnoreCacheControl(String IgnoreCacheControl)
Set Force cache: on: Enable; off: Disable.
|
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.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, getSkipSign, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public CacheConfigCache()
public CacheConfigCache(CacheConfigCache source)
public String getSwitch()
public void setSwitch(String Switch)
Switch
- Cache configuration switch: public Long getCacheTime()
public void setCacheTime(Long CacheTime)
CacheTime
- Cache expiration time settingspublic 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: public String getIgnoreCacheControl()
public void setIgnoreCacheControl(String IgnoreCacheControl)
IgnoreCacheControl
- Force cache: 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. Copyright © 2023. All rights reserved.