public class CacheKeyDefine extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected static CacheStruct |
DEFAULT_STRUCT |
protected static long |
DEFAULT_TIMEOUT |
protected static TimeUnit |
DEFAULT_UNIT |
Constructor and Description |
---|
CacheKeyDefine(String key) |
CacheKeyDefine(String key,
String desc,
Class<?> type,
CacheStruct struct,
long timeout,
TimeUnit unit) |
Modifier and Type | Method and Description |
---|---|
String |
format(Map<?,?> map)
格式化 key 占位符 ${xxx}
|
String |
format(Object... param)
格式化 key 占位符 {}
|
String |
getDesc() |
String |
getKey() |
CacheStruct |
getStruct() |
long |
getTimeout() |
Class<?> |
getType() |
TimeUnit |
getUnit() |
void |
setTimeout(long timeout) |
void |
setUnit(TimeUnit unit) |
String |
toString() |
protected static final CacheStruct DEFAULT_STRUCT
protected static final long DEFAULT_TIMEOUT
protected static final TimeUnit DEFAULT_UNIT
public CacheKeyDefine(String key)
public CacheKeyDefine(String key, String desc, Class<?> type, CacheStruct struct, long timeout, TimeUnit unit)
public String getKey()
public String getDesc()
public Class<?> getType()
public CacheStruct getStruct()
public long getTimeout()
public void setTimeout(long timeout)
public TimeUnit getUnit()
public void setUnit(TimeUnit unit)
Copyright © 2024. All rights reserved.