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

每次doGetAuthenticationInfo都查询数据库 #40

Open
RFDeval opened this issue Feb 12, 2022 · 1 comment
Open

每次doGetAuthenticationInfo都查询数据库 #40

RFDeval opened this issue Feb 12, 2022 · 1 comment

Comments

@RFDeval
Copy link

RFDeval commented Feb 12, 2022

不知道我理解的对不对,以后每次访问携带jwt,都要走Realm里的认证方法,里面每次都从数据库查询用户信息,这样效率行么?

@ningqixiao
Copy link

可以存进redis进行验证,如果redis过期,再从数据库查询补回redis

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

2 participants