public class AdvanceCacheRule extends AbstractModel
Constructor and Description |
---|
AdvanceCacheRule() |
Modifier and Type | Method and Description |
---|---|
String[] |
getCacheContents()
Get Matching content under the corresponding types:
For "all", enter an asterisk (*).
|
Long |
getCacheTime()
Get Cache expiration time
Unit: second.
|
String |
getCacheType()
Get Rule types:
all: all files take effect
file: specified file suffixes take effect
directory: specified paths take effect
path: specified absolute paths take effect
default: the cache rules when the origin server has not returned max-age
Note: this field may return null, indicating that no valid values can be obtained.
|
void |
setCacheContents(String[] CacheContents)
Set Matching content under the corresponding types:
For "all", enter an asterisk (*).
|
void |
setCacheTime(Long CacheTime)
Set Cache expiration time
Unit: second.
|
void |
setCacheType(String CacheType)
Set Rule types:
all: all files take effect
file: specified file suffixes take effect
directory: specified paths take effect
path: specified absolute paths take effect
default: the cache rules when the origin server has not returned max-age
Note: this field may return null, indicating that no valid values can be 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 getCacheType()
public void setCacheType(String CacheType)
CacheType
- Rule types:
all: all files take effect
file: specified file suffixes take effect
directory: specified paths take effect
path: specified absolute paths take effect
default: the cache rules when the origin server has not returned max-age
Note: this field may return null, indicating that no valid values can be obtained.public String[] getCacheContents()
public void setCacheContents(String[] CacheContents)
CacheContents
- Matching content under the corresponding types:
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 "default", enter "no max-age".
Note: this field may return null, indicating that no valid values can be obtained.public Long getCacheTime()
public void setCacheTime(Long CacheTime)
CacheTime
- Cache expiration time
Unit: second. The maximum value is 365 days.
Note: this field may return null, indicating that no valid values can be obtained.Copyright © 2020. All rights reserved.