public class AdvanceCacheRule extends AbstractModel
Constructor and Description |
---|
AdvanceCacheRule() |
Modifier and Type | Method and Description |
---|---|
String[] |
getCacheContents()
Get Content for each CacheType:
For `all`, enter an asterisk (*).
|
Long |
getCacheTime()
Get Cache expiration time
Unit: second.
|
String |
getCacheType()
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
`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 Content for each CacheType:
For `all`, enter an asterisk (*).
|
void |
setCacheTime(Long CacheTime)
Set Cache expiration time
Unit: second.
|
void |
setCacheType(String CacheType)
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
`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`: effective for all files
`file`: effective for specified file suffixes
`directory`: effective for specified paths
`path`: effective for specified absolute paths
`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
- 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 `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.