| | |
| | | } |
| | | |
| | | /** |
| | | * 获取所有配置信息 |
| | | * |
| | | * @return configMap 配置信息map |
| | | */ |
| | | public static Map<String, Object> getConfigMap() { |
| | | Map<String, Object> configMap = SpringUtils.getBean(RedisCache.class).getMapKey(CacheConstants.SYS_CONFIG_KEY); |
| | | if (StringUtils.isNotNull(configMap)) { |
| | | return configMap; |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * 设置cache key |
| | | * |
| | | * @param configKey 参数键 |
| | | * @return 缓存键key |
| | | */ |
| | | public static String getCacheKey(String configKey) { |
| | | private static String getCacheKey(String configKey) { |
| | | return CacheConstants.SYS_CONFIG_KEY + configKey; |
| | | } |
| | | |