public class SimpleCacheRule extends AbstractModel
Constructor and Description |
---|
SimpleCacheRule() |
Modifier and Type | Method and Description |
---|---|
String[] |
getCacheContents()
Get Content for each CacheType:
For `all`, enter an asterisk (*).
|
Long |
getCacheTime()
Get Cache expiration time settings
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
index: home page
|
void |
setCacheContents(String[] CacheContents)
Set Content for each CacheType:
For `all`, enter an asterisk (*).
|
void |
setCacheTime(Long CacheTime)
Set Cache expiration time settings
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
index: home page
|
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
index: home pagepublic 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 `index`, enter a backslash (/).public Long getCacheTime()
public void setCacheTime(Long CacheTime)
CacheTime
- Cache expiration time settings
Unit: second. The maximum value is 365 days.Copyright © 2020. All rights reserved.