public class RuleCache extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| RuleCache() | 
| RuleCache(RuleCache 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 | 
|---|---|
| RuleCacheConfig | getCacheConfig()Get Cache configuration
Note: This field may return `null`, indicating that no valid value can be 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 can be 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, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic RuleCache()
public RuleCache(RuleCache source)
public 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 `/`.
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.
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 can be obtained.Copyright © 2025. All rights reserved.