public class Cache extends AbstractModel
Constructor and Description |
---|
Cache() |
Cache(Cache 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 |
---|---|
CacheRule[] |
getCacheRules()
Get Caching configuration rule array.
|
String |
getFollowOrigin()
Get Whether to follow the `Cache-Control: max-age` configuration on the origin server (this feature is only available to users on the allowlist).
|
void |
setCacheRules(CacheRule[] CacheRules)
Set Caching configuration rule array.
|
void |
setFollowOrigin(String FollowOrigin)
Set Whether to follow the `Cache-Control: max-age` configuration on the origin server (this feature is only available to users on the allowlist).
|
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 Cache()
public Cache(Cache source)
public CacheRule[] getCacheRules()
public void setCacheRules(CacheRule[] CacheRules)
CacheRules
- Caching configuration rule array.public String getFollowOrigin()
public void setFollowOrigin(String FollowOrigin)
FollowOrigin
- Whether to follow the `Cache-Control: max-age` configuration on the origin server (this feature is only available to users on the allowlist).
on: enable
off: disable
If it is enabled, resources that do not match `CacheRules` will be cached on node according to the `max-age` value returned by the origin server, while resources that match `CacheRules` will be cached on node according to the cache expiration time set in `CacheRules`.
Note: this field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.