-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf($auth-center): cache user info by login token
- Loading branch information
1 parent
447e072
commit 2bc9115
Showing
2 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
...center/src/main/java/com/jmsoftware/maf/authcenter/user/entity/constant/UserRedisKey.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.jmsoftware.maf.authcenter.user.entity.constant; | ||
|
||
import lombok.Getter; | ||
|
||
/** | ||
* Description: UserRedisKey, change description here. | ||
* | ||
* @author Johnny Miller (锺俊), email: johnnysviva@outlook.com, date: 6/28/2021 3:18 PM | ||
**/ | ||
@Getter | ||
public enum UserRedisKey { | ||
/** | ||
* Get user by login token key pattern, expired in random [1, 7) days | ||
*/ | ||
GET_USER_BY_LOGIN_TOKEN(":user:get_user_by_login_token:%s"); | ||
private final String keyInfixFormat; | ||
|
||
UserRedisKey(String keyInfixFormat) { | ||
this.keyInfixFormat = keyInfixFormat; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters