public class SimpleCacheRule extends AbstractModel
Constructor and Description |
---|
SimpleCacheRule() |
Modifier and Type | Method and Description |
---|---|
String[] |
getCacheContents()
Get Content for each CacheType:
Enter `*` for `all`
Enter an extension for `file`, such as `jpg` or `txt`
Enter a path for `directory`, such as `/xxx/test`
Enter an absolute path for `path`, such as `/xxx/test.html`
Enter `/` for `index`
|
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:
Enter `*` for `all`
Enter an extension for `file`, such as `jpg` or `txt`
Enter a path for `directory`, such as `/xxx/test`
Enter an absolute path for `path`, such as `/xxx/test.html`
Enter `/` for `index`
|
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:
Enter `*` for `all`
Enter an extension for `file`, such as `jpg` or `txt`
Enter a path for `directory`, such as `/xxx/test`
Enter an absolute path for `path`, such as `/xxx/test.html`
Enter `/` for `index`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.