Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
ServerModel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
kiritoausna
ServerModel
Commits
d6cd3951
Commit
d6cd3951
authored
Jan 09, 2025
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2025.1.9 RedisCache 模糊匹配和删除命令优化,同时优化mybatis的yml配置
parent
8ef96f6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
SysUserOnlineController.java
...gemho/web/controller/monitor/SysUserOnlineController.java
+1
-1
SysConfigServiceImpl.java
...a/com/gemho/system/service/impl/SysConfigServiceImpl.java
+1
-1
No files found.
gemho-admin/src/main/java/com/gemho/web/controller/monitor/SysUserOnlineController.java
View file @
d6cd3951
...
...
@@ -42,7 +42,7 @@ public class SysUserOnlineController extends BaseController
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
String
ipaddr
,
String
userName
)
{
Collection
<
String
>
keys
=
redisCache
.
keys
(
CacheConstants
.
LOGIN_TOKEN_KEY
+
"*"
);
Collection
<
String
>
keys
=
redisCache
.
scanMatch
(
CacheConstants
.
LOGIN_TOKEN_KEY
+
"*"
);
List
<
SysUserOnline
>
userOnlineList
=
new
ArrayList
<
SysUserOnline
>();
for
(
String
key
:
keys
)
{
...
...
gemho-system/src/main/java/com/gemho/system/service/impl/SysConfigServiceImpl.java
View file @
d6cd3951
...
...
@@ -187,7 +187,7 @@ public class SysConfigServiceImpl implements ISysConfigService
@Override
public
void
clearConfigCache
()
{
Collection
<
String
>
keys
=
redisCache
.
keys
(
CacheConstants
.
SYS_CONFIG_KEY
+
"*"
);
Collection
<
String
>
keys
=
redisCache
.
scanMatch
(
CacheConstants
.
SYS_CONFIG_KEY
+
"*"
);
redisCache
.
deleteObject
(
keys
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment