Class Cache
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.teo.v20220901.models.Cache
-
public class Cache extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description LonggetCacheTime()Get 缓存过期时间设置。 单位为秒,最大可设置为 365 天。 注意:此字段可能返回 null,表示取不到有效值。StringgetIgnoreCacheControl()Deprecated.StringgetSwitch()Get 缓存配置开关,取值有: on:开启; off:关闭。voidsetCacheTime(Long CacheTime)Set 缓存过期时间设置。 单位为秒,最大可设置为 365 天。 注意:此字段可能返回 null,表示取不到有效值。voidsetIgnoreCacheControl(String IgnoreCacheControl)Deprecated.voidsetSwitch(String Switch)Set 缓存配置开关,取值有: on:开启; off:关闭。voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
Cache
public Cache()
-
Cache
public Cache(Cache 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.
-
-
Method Detail
-
getSwitch
public String getSwitch()
Get 缓存配置开关,取值有:- on:开启;
- off:关闭。
- Returns:
- Switch 缓存配置开关,取值有:
- on:开启;
- off:关闭。
-
setSwitch
public void setSwitch(String Switch)
Set 缓存配置开关,取值有:- on:开启;
- off:关闭。
- Parameters:
Switch- 缓存配置开关,取值有:- on:开启;
- off:关闭。
-
getCacheTime
public Long getCacheTime()
Get 缓存过期时间设置。 单位为秒,最大可设置为 365 天。 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- CacheTime 缓存过期时间设置。 单位为秒,最大可设置为 365 天。 注意:此字段可能返回 null,表示取不到有效值。
-
setCacheTime
public void setCacheTime(Long CacheTime)
Set 缓存过期时间设置。 单位为秒,最大可设置为 365 天。 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
CacheTime- 缓存过期时间设置。 单位为秒,最大可设置为 365 天。 注意:此字段可能返回 null,表示取不到有效值。
-
getIgnoreCacheControl
@Deprecated public String getIgnoreCacheControl()
Deprecated.Get 是否开启强制缓存,取值有:- on:开启;
- off:关闭。
注意:此字段可能返回 null,表示取不到有效值。- Returns:
- IgnoreCacheControl 是否开启强制缓存,取值有:
- on:开启;
- off:关闭。
注意:此字段可能返回 null,表示取不到有效值。
-
setIgnoreCacheControl
@Deprecated public void setIgnoreCacheControl(String IgnoreCacheControl)
Deprecated.Set 是否开启强制缓存,取值有:- on:开启;
- off:关闭。
注意:此字段可能返回 null,表示取不到有效值。- Parameters:
IgnoreCacheControl- 是否开启强制缓存,取值有:- on:开启;
- off:关闭。
注意:此字段可能返回 null,表示取不到有效值。
-
-