public class CacheKey extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| CacheKey() | 
| CacheKey(CacheKey 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 | 
|---|---|
| CacheTagKey | getCacheTag()Get CacheKey中包含自定义字符串
注意:此字段可能返回 null,表示取不到有效值。 | 
| CookieKey | getCookie()Get CacheKey中包含Cookie
注意:此字段可能返回 null,表示取不到有效值。 | 
| String | getFullUrlCache()Get 是否开启全路径缓存
on:开启全路径缓存(即关闭参数忽略)
off:关闭全路径缓存(即开启参数忽略) | 
| HeaderKey | getHeader()Get CacheKey中包含请求头部
注意:此字段可能返回 null,表示取不到有效值。 | 
| String | getIgnoreCase()Get 是否忽略大小写缓存
on:开启
off:关闭
注意:此字段可能返回 null,表示取不到有效值。 | 
| KeyRule[] | getKeyRules()Get 分路径缓存键配置
注意:此字段可能返回 null,表示取不到有效值。 | 
| QueryStringKey | getQueryString()Get CacheKey中包含请求参数
注意:此字段可能返回 null,表示取不到有效值。 | 
| SchemeKey | getScheme()Get CacheKey中包含请求协议
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setCacheTag(CacheTagKey CacheTag)Set CacheKey中包含自定义字符串
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setCookie(CookieKey Cookie)Set CacheKey中包含Cookie
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setFullUrlCache(String FullUrlCache)Set 是否开启全路径缓存
on:开启全路径缓存(即关闭参数忽略)
off:关闭全路径缓存(即开启参数忽略) | 
| void | setHeader(HeaderKey Header)Set CacheKey中包含请求头部
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setIgnoreCase(String IgnoreCase)Set 是否忽略大小写缓存
on:开启
off:关闭
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setKeyRules(KeyRule[] KeyRules)Set 分路径缓存键配置
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setQueryString(QueryStringKey QueryString)Set CacheKey中包含请求参数
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setScheme(SchemeKey Scheme)Set CacheKey中包含请求协议
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic CacheKey()
public CacheKey(CacheKey source)
public String getFullUrlCache()
public void setFullUrlCache(String FullUrlCache)
FullUrlCache - 是否开启全路径缓存
on:开启全路径缓存(即关闭参数忽略)
off:关闭全路径缓存(即开启参数忽略)public String getIgnoreCase()
public void setIgnoreCase(String IgnoreCase)
IgnoreCase - 是否忽略大小写缓存
on:开启
off:关闭
注意:此字段可能返回 null,表示取不到有效值。public QueryStringKey getQueryString()
public void setQueryString(QueryStringKey QueryString)
QueryString - CacheKey中包含请求参数
注意:此字段可能返回 null,表示取不到有效值。public CookieKey getCookie()
public void setCookie(CookieKey Cookie)
Cookie - CacheKey中包含Cookie
注意:此字段可能返回 null,表示取不到有效值。public HeaderKey getHeader()
public void setHeader(HeaderKey Header)
Header - CacheKey中包含请求头部
注意:此字段可能返回 null,表示取不到有效值。public CacheTagKey getCacheTag()
public void setCacheTag(CacheTagKey CacheTag)
CacheTag - CacheKey中包含自定义字符串
注意:此字段可能返回 null,表示取不到有效值。public SchemeKey getScheme()
public void setScheme(SchemeKey Scheme)
Scheme - CacheKey中包含请求协议
注意:此字段可能返回 null,表示取不到有效值。public KeyRule[] getKeyRules()
public void setKeyRules(KeyRule[] KeyRules)
KeyRules - 分路径缓存键配置
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2025. All rights reserved.