public class RuleCache extends AbstractModel
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
|
String[] |
getRulePaths()
Get 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.
|
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.
|
void |
setCacheConfig(RuleCacheConfig CacheConfig)
Set Cache configuration
|
void |
setRulePaths(String[] RulePaths)
Set 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.
|
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.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, getSkipSign, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public RuleCache()
public RuleCache(RuleCache source)
public String getRuleType()
public void setRuleType(String RuleType)
RuleType
- Rule types:public String[] getRulePaths()
public void setRulePaths(String[] RulePaths)
RulePaths
- Content for each CacheType: public RuleCacheConfig getCacheConfig()
public void setCacheConfig(RuleCacheConfig CacheConfig)
CacheConfig
- Cache configurationCopyright © 2023. All rights reserved.