项目名称修改,性能优化,结构优化
This commit is contained in:
@@ -56,6 +56,20 @@ public class RedisKeys {
|
||||
return "sys:user:permissions:" + userId;
|
||||
}
|
||||
|
||||
/**
|
||||
* 站点列表缓存Key(按部门权限区分)
|
||||
*/
|
||||
public static String getStationListKey(Long deptId) {
|
||||
return "weather:station:list:" + deptId;
|
||||
}
|
||||
|
||||
/**
|
||||
* 站点列表缓存匹配模式(站点变更时清除所有部门缓存)
|
||||
*/
|
||||
public static String getStationListPattern() {
|
||||
return "weather:station:list:*";
|
||||
}
|
||||
|
||||
/**
|
||||
* 天气汇总缓存Key(按站点分组,月-日维度)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user