public class RuleCache extends AbstractModel
| Constructor and Description | 
|---|
| RuleCache() | 
| Modifier and Type | Method and Description | 
|---|---|
| RuleCacheConfig | getCacheConfig()Get Cache configuration
Note: this field may return null, indicating that no valid value is obtained. | 
| String[] | getRulePaths()Get Content for each `CacheType`:
For `all`, enter a wildcard `*`. | 
| String | getRuleType()Get Rule types:
`all`: effective for all files. | 
| void | setCacheConfig(RuleCacheConfig CacheConfig)Set Cache configuration
Note: this field may return null, indicating that no valid value is obtained. | 
| void | setRulePaths(String[] RulePaths)Set Content for each `CacheType`:
For `all`, enter a wildcard `*`. | 
| void | setRuleType(String RuleType)Set Rule types:
`all`: effective for all files. | 
| 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 String[] getRulePaths()
public void setRulePaths(String[] RulePaths)
RulePaths - Content for each `CacheType`:
For `all`, enter a wildcard `*`.
For `file`, enter the suffix, e.g., `jpg` or `txt`.
For `directory`, enter the path, e.g., `/xxx/test/`.
For `path`, enter the absolute path, e.g., `/xxx/test.html`.
For `index`, enter a forward slash `/`.
For `default`, enter `no max-age`.
Note: this field may return `null`, indicating that no valid values can be obtained.public String getRuleType()
public void setRuleType(String RuleType)
RuleType - Rule types:
`all`: effective for all files.
`file`: effective for specified file suffixes.
`directory`: effective for specified paths.
`path`: effective for specified absolute paths.
`index`: homepage.
`default`: effective when the origin server does not have the `max-age` value.
Note: this field may return `null`, indicating that no valid values can be obtained.public RuleCacheConfig getCacheConfig()
public void setCacheConfig(RuleCacheConfig CacheConfig)
CacheConfig - Cache configuration
Note: this field may return null, indicating that no valid value is obtained.Copyright © 2021. All rights reserved.