Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

springCache中的清除缓存的操作使用了“keys”。 #4358

Closed
yekaka opened this issue Dec 4, 2022 · 1 comment
Closed

springCache中的清除缓存的操作使用了“keys”。 #4358

yekaka opened this issue Dec 4, 2022 · 1 comment

Comments

@yekaka
Copy link

yekaka commented Dec 4, 2022

版本号:v3.4.4
前端版本:vue3版?还是 vue2版?
问题描述:

清除缓存的时候使用了redis的keys命令,不怕出问题吗?(虽然spring官方也是这样干的)

截图&代码:

image

Set keys = redisTemplate.keys(CacheConstant.SYS_DICT_CACHE + "");
Set keys7 = redisTemplate.keys(CacheConstant.SYS_ENABLE_DICT_CACHE + "
");
Set keys2 = redisTemplate.keys(CacheConstant.SYS_DICT_TABLE_CACHE + "");
Set keys21 = redisTemplate.keys(CacheConstant.SYS_DICT_TABLE_BY_KEYS_CACHE + "
");
Set keys3 = redisTemplate.keys(CacheConstant.SYS_DEPARTS_CACHE + "");
Set keys4 = redisTemplate.keys(CacheConstant.SYS_DEPART_IDS_CACHE + "
");

友情提示(为了提高issue处理效率):

  • 未按格式要求发帖,会被直接删掉;
  • 描述过于简单或模糊,导致无法处理的,会被直接删掉;
  • 请自己初判问题描述是否清楚,是否方便我们调查处理;
  • 针对问题请说明是Online在线功能(需说明用的主题模板),还是生成的代码功能;
@lsqGitHub716
Copy link

已修改

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants