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 an asterisk (*).
|
String |
getRuleType()
Get 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`: home page
Note: this field may return null, indicating that no valid value is obtained.
|
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 an asterisk (*).
|
void |
setRuleType(String RuleType)
Set 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`: home page
Note: this field may return null, indicating that no valid value is obtained.
|
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 String[] getRulePaths()
public void setRulePaths(String[] RulePaths)
RulePaths
- Content for each CacheType:
For `all`, enter an asterisk (*).
For `file`, enter the suffix, such as jpg, txt.
For `directory`, enter the path, such as /xxx/test/.
For `path`, enter the corresponding absolute path, such as /xxx/test.html.
For `index`, enter a backslash (/).
Note: this field may return null, indicating that no valid value is 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`: home page
Note: this field may return null, indicating that no valid value is 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 © 2020. All rights reserved.