...
|
...
|
@@ -23,14 +23,16 @@ public enum ShareOrdersKeyEnum { |
|
|
ORDER_STATISTICS_INFO("yh:union:share:statisticsInfo:","queryTimeType:{}",600,"统计数据"),
|
|
|
RANK_LIST("yh:union:share:ranklist:","type:{}:start:{}:limit:{}",86400,"达人排行榜"),
|
|
|
RANK_INFO("yh:union:share:rank:","date:{}:type:{}",300,"个人排行"),
|
|
|
MESSAGE_LIST("yh:union:share:messageList:","page:{}:limit:{}",600,"消息列表");
|
|
|
|
|
|
MESSAGE_LIST("yh:union:share:messageList:","page:{}:limit:{}",600,"消息列表"),
|
|
|
IMG_RESOURCE_URL("yh:union:share:img:resource:url");//推手图片资源位
|
|
|
|
|
|
private String preKey;
|
|
|
private String periodHashKey;
|
|
|
// 超时时间配置的key
|
|
|
private int cacheTime;
|
|
|
private String desc;
|
|
|
private String key;
|
|
|
|
|
|
|
|
|
ShareOrdersKeyEnum(String preKey,String periodHashKey,int cacheTime,String desc) {
|
|
|
this.preKey = preKey;
|
...
|
...
|
@@ -38,6 +40,17 @@ public enum ShareOrdersKeyEnum { |
|
|
this.cacheTime = cacheTime;
|
|
|
this.desc = desc;
|
|
|
}
|
|
|
ShareOrdersKeyEnum(String key){
|
|
|
this.key=key;
|
|
|
}
|
|
|
|
|
|
public String getKey() {
|
|
|
return key;
|
|
|
}
|
|
|
|
|
|
public void setKey(String key) {
|
|
|
this.key = key;
|
|
|
}
|
|
|
|
|
|
public String getKey(Object object) {
|
|
|
return this.getPreKey() + object;
|
...
|
...
|
|