public class CacheRule extends AbstractModel
Constructor and Description |
---|
CacheRule() |
CacheRule(CacheRule 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 |
---|---|
String[] |
getCacheContents()
Get Cached content list.
|
Long |
getCacheTime()
Get Cache time in seconds.
|
String |
getCacheType()
Get Cache type.
|
void |
setCacheContents(String[] CacheContents)
Set Cached content list.
|
void |
setCacheTime(Long CacheTime)
Set Cache time in seconds.
|
void |
setCacheType(String CacheType)
Set Cache type.
|
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 CacheRule()
public CacheRule(CacheRule source)
public String getCacheType()
public void setCacheType(String CacheType)
CacheType
- Cache type. Valid values: all (all files), file (extension type), directory (directory), path (full path), index (homepage).public String[] getCacheContents()
public void setCacheContents(String[] CacheContents)
CacheContents
- Cached content list.public Long getCacheTime()
public void setCacheTime(Long CacheTime)
CacheTime
- Cache time in seconds.Copyright © 2023. All rights reserved.