-
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 role info by user id
- Loading branch information
1 parent
2bc9115
commit e9d935b
Showing
5 changed files
with
50 additions
and
14 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
...center/src/main/java/com/jmsoftware/maf/authcenter/role/entity/constant/RoleRedisKey.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,22 @@ | ||
package com.jmsoftware.maf.authcenter.role.entity.constant; | ||
|
||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
/** | ||
* <h1>RoleRedisKey</h1> | ||
* <p> | ||
* Change description here. | ||
* | ||
* @author Johnny Miller (鍾俊), email: johnnysviva@outlook.com, 6/28/21 9:45 PM | ||
**/ | ||
@Getter | ||
@RequiredArgsConstructor | ||
public enum RoleRedisKey { | ||
/** | ||
* Get user by login token key pattern, expired in random [1, 7) days | ||
*/ | ||
GET_ROLE_LIST_BY_USER_ID(":role:get_role_list_by_user_id:%s"); | ||
|
||
private final String 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
7 changes: 3 additions & 4 deletions
7
...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 |
---|---|---|
@@ -1,21 +1,20 @@ | ||
package com.jmsoftware.maf.authcenter.user.entity.constant; | ||
|
||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
/** | ||
* Description: UserRedisKey, change description here. | ||
* | ||
* @author Johnny Miller (锺俊), email: johnnysviva@outlook.com, date: 6/28/2021 3:18 PM | ||
**/ | ||
@Getter | ||
@RequiredArgsConstructor | ||
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; | ||
} | ||
private final String keyInfixFormat; | ||
} |
2 changes: 1 addition & 1 deletion
2
docker/script/mysql-server-slave/3_replication_configuration.sql.backup
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
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