字典管理添加缓存读取

This commit is contained in:
RuoYi
2020-03-18 15:03:52 +08:00
parent f8491c36e2
commit 05b5b314ee
12 changed files with 233 additions and 78 deletions

View File

@ -67,6 +67,16 @@ public class Constants
*/
public static final String SYS_CONFIG_KEY = "sys_config:";
/**
* 字典管理 cache name
*/
public static final String SYS_DICT_CACHE = "sys-dict";
/**
* 字典管理 cache key
*/
public static final String SYS_DICT_KEY = "sys_dict:";
/**
* 资源映射路径 前缀
*/

View File

@ -395,4 +395,10 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils
}
return sb.toString();
}
@SuppressWarnings("unchecked")
public static <T> T cast(Object obj)
{
return (T) obj;
}
}