optimize: 缓存接口优化
This commit is contained in:
parent
16ddc6855b
commit
0695f98d4c
|
|
@ -2,7 +2,6 @@ package com.nflg.product.bomnew.api.user;
|
|||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.nflg.product.base.core.api.BaseApi;
|
||||
import com.nflg.product.base.core.conmon.util.SessionUtil;
|
||||
import com.nflg.product.bomnew.pojo.dto.CacheDTO;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
|
@ -65,6 +64,6 @@ public class CacheApi extends BaseApi {
|
|||
}
|
||||
|
||||
private String buildKey(String key) {
|
||||
return StrUtil.format("{}:{}:{}", PREFIX, SessionUtil.getUserCode(), key);
|
||||
return StrUtil.format("{}:{}", PREFIX, key);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue