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