public class AdvancedCache extends AbstractModel
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
AdvanceCacheRule[] |
getCacheRules()
Get Cache expiration rule
Note: this field may return `null`, indicating that no valid values can be obtained.
|
String |
getIgnoreCacheControl()
Get Forced cache configuration
on: enabled
off: disabled
When this is enabled, if the origin server returns no-cache, no-store headers, node caching will still be performed according to the cache expiration rules.
|
String |
getIgnoreSetCookie()
Get Whether to ignore the header and body on cache nodes if the origin server returns the header `Set-Cookie`.
|
void |
setCacheRules(AdvanceCacheRule[] CacheRules)
Set Cache expiration rule
Note: this field may return `null`, indicating that no valid values can be obtained.
|
void |
setIgnoreCacheControl(String IgnoreCacheControl)
Set Forced cache configuration
on: enabled
off: disabled
When this is enabled, if the origin server returns no-cache, no-store headers, node caching will still be performed according to the cache expiration rules.
|
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 |
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 AdvancedCache()
public AdvancedCache(AdvancedCache source)
public AdvanceCacheRule[] getCacheRules()
public void setCacheRules(AdvanceCacheRule[] CacheRules)
CacheRules
- Cache expiration rule
Note: this field may return `null`, indicating that no valid values can be obtained.public String getIgnoreCacheControl()
public void setIgnoreCacheControl(String IgnoreCacheControl)
IgnoreCacheControl
- Forced cache configuration
on: enabled
off: disabled
When this is enabled, if the origin server returns no-cache, no-store headers, node caching will still be performed according to the cache expiration rules.
This is disabled by default
Note: This field may return `null`, indicating that no valid value can be 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 © 2023. All rights reserved.