public class CacheConfigCache extends AbstractModel
header, 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 caching, values: on: on; off: off.
|
String |
getIgnoreSetCookie()
Get When the origin site returns the Set-Cookie header, whether the node caches the header and body: on: on, does not cache the header and body; off: off, follows user customization Node caching rules.
|
String |
getSwitch()
Get Path cache configuration switch, the values u200bu200bare: on: on; off: off.
|
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 caching, values: on: on; off: off.
|
void |
setIgnoreSetCookie(String IgnoreSetCookie)
Set When the origin site returns the Set-Cookie header, whether the node caches the header and body: on: on, does not cache the header and body; off: off, follows user customization Node caching rules.
|
void |
setSwitch(String Switch)
Set Path cache configuration switch, the values u200bu200bare: on: on; off: off.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public CacheConfigCache()
public CacheConfigCache(CacheConfigCache source)
public String getSwitch()
public void setSwitch(String Switch)
Switch
- Path cache configuration switch, the values u200bu200bare: 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. When enabled, the max-age value returned by the origin site will be compared with the cache expiration time set in CacheRules, and the minimum value will be used to cache the node. Values: public String getIgnoreCacheControl()
public void setIgnoreCacheControl(String IgnoreCacheControl)
IgnoreCacheControl
- Force caching, values: public String getIgnoreSetCookie()
public void setIgnoreSetCookie(String IgnoreSetCookie)
IgnoreSetCookie
- When the origin site returns the Set-Cookie header, whether the node caches the header and body: Copyright © 2024. All rights reserved.