Pre Merge pull request !469 from ZhangRui/fix_issue_I5302M
This commit is contained in:
commit
f37f6663ad
@ -239,6 +239,7 @@ public class RedisCache
|
|||||||
* @param pattern 字符串前缀
|
* @param pattern 字符串前缀
|
||||||
* @return 对象列表
|
* @return 对象列表
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public Collection<String> keys(final String pattern)
|
public Collection<String> keys(final String pattern)
|
||||||
{
|
{
|
||||||
return redisTemplate.keys(pattern);
|
return redisTemplate.keys(pattern);
|
||||||
|
@ -160,14 +160,7 @@ public class DictUtils
|
|||||||
SpringUtils.getBean(RedisCache.class).deleteObject(getCacheKey(key));
|
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
|
* 设置cache key
|
||||||
|
@ -69,11 +69,6 @@ public interface ISysConfigService
|
|||||||
*/
|
*/
|
||||||
public void loadingConfigCache();
|
public void loadingConfigCache();
|
||||||
|
|
||||||
/**
|
|
||||||
* 清空参数缓存数据
|
|
||||||
*/
|
|
||||||
public void clearConfigCache();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 重置参数缓存数据
|
* 重置参数缓存数据
|
||||||
*/
|
*/
|
||||||
|
@ -62,10 +62,6 @@ public interface ISysDictTypeService
|
|||||||
*/
|
*/
|
||||||
public void loadingDictCache();
|
public void loadingDictCache();
|
||||||
|
|
||||||
/**
|
|
||||||
* 清空字典缓存数据
|
|
||||||
*/
|
|
||||||
public void clearDictCache();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 重置字典缓存数据
|
* 重置字典缓存数据
|
||||||
|
@ -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
|
@Override
|
||||||
public void resetConfigCache()
|
public void resetConfigCache()
|
||||||
{
|
{
|
||||||
clearConfigCache();
|
|
||||||
loadingConfigCache();
|
loadingConfigCache();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
@Override
|
||||||
public void resetDictCache()
|
public void resetDictCache()
|
||||||
{
|
{
|
||||||
clearDictCache();
|
|
||||||
loadingDictCache();
|
loadingDictCache();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user