We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.5.0
看了下在线用户管理的功能,列表是用的redisTemplate.keys()模糊匹配所有的token,但是如果数据量大了的话,keys严重影响性能,而且会阻塞整个Redis服务器。单独的踢出用户又是通过token来踢出的。在禁用某个用户或者删除某个用户时,无法删除对应token,除非是获取出所有token对应的key,再找到这个用户的token去删掉
在在线用户管理中,踢出某用户的接口里,这行代码也是有问题的,这里是表示退出当前登录的账号,并不是退出要踢出的用户,这里执行踢出为什么要退出当前用户。
The text was updated successfully, but these errors were encountered:
有错误吗
Sorry, something went wrong.
No branches or pull requests
版本号:
3.5.0
问题描述:
看了下在线用户管理的功能,列表是用的redisTemplate.keys()模糊匹配所有的token,但是如果数据量大了的话,keys严重影响性能,而且会阻塞整个Redis服务器。单独的踢出用户又是通过token来踢出的。在禁用某个用户或者删除某个用户时,无法删除对应token,除非是获取出所有token对应的key,再找到这个用户的token去删掉
错误截图:
在在线用户管理中,踢出某用户的接口里,这行代码也是有问题的,这里是表示退出当前登录的账号,并不是退出要踢出的用户,这里执行踢出为什么要退出当前用户。
友情提示:
The text was updated successfully, but these errors were encountered: