Pre Merge pull request !469 from ZhangRui/fix_issue_I5302M

This commit is contained in:
ZhangRui 2022-04-23 12:55:17 +00:00 committed by Gitee
commit f37f6663ad
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
6 changed files with 3 additions and 36 deletions

View File

@ -239,6 +239,7 @@ public class RedisCache
* @param pattern 字符串前缀
* @return 对象列表
*/
@Deprecated
public Collection<String> keys(final String pattern)
{
return redisTemplate.keys(pattern);

View File

@ -160,14 +160,7 @@ public class DictUtils
SpringUtils.getBean(RedisCache.class).deleteObject(getCacheKey(key));
}
/**
* 清空字典缓存
*/
public static void clearDictCache()
{
Collection<String> keys = SpringUtils.getBean(RedisCache.class).keys(Constants.SYS_DICT_KEY + "*");
SpringUtils.getBean(RedisCache.class).deleteObject(keys);
}
/**
* 设置cache key

View File

@ -69,11 +69,6 @@ public interface ISysConfigService
*/
public void loadingConfigCache();
/**
* 清空参数缓存数据
*/
public void clearConfigCache();
/**
* 重置参数缓存数据
*/

View File

@ -62,10 +62,6 @@ public interface ISysDictTypeService
*/
public void loadingDictCache();
/**
* 清空字典缓存数据
*/
public void clearDictCache();
/**
* 重置字典缓存数据

View File

@ -175,15 +175,7 @@ public class SysConfigServiceImpl implements ISysConfigService
}
}
/**
* 清空参数缓存数据
*/
@Override
public void clearConfigCache()
{
Collection<String> keys = redisCache.keys(Constants.SYS_CONFIG_KEY + "*");
redisCache.deleteObject(keys);
}
/**
* 重置参数缓存数据
@ -191,7 +183,6 @@ public class SysConfigServiceImpl implements ISysConfigService
@Override
public void resetConfigCache()
{
clearConfigCache();
loadingConfigCache();
}

View File

@ -146,14 +146,6 @@ public class SysDictTypeServiceImpl implements ISysDictTypeService
}
}
/**
* 清空字典缓存数据
*/
@Override
public void clearDictCache()
{
DictUtils.clearDictCache();
}
/**
* 重置字典缓存数据
@ -161,7 +153,6 @@ public class SysDictTypeServiceImpl implements ISysDictTypeService
@Override
public void resetDictCache()
{
clearDictCache();
loadingDictCache();
}