Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Eladmin
Commits
c9614bd7
Commit
c9614bd7
authored
Jan 27, 2022
by
TikiWong
Browse files
笔误
parent
6941b984
Changes
1
Hide whitespace changes
Inline
Side-by-side
eladmin-system/src/main/java/me/zhengjie/modules/security/service/UserCacheManager.java
View file @
c9614bd7
...
@@ -47,8 +47,8 @@ public class UserCacheManager {
...
@@ -47,8 +47,8 @@ public class UserCacheManager {
public
void
expel
()
{
public
void
expel
()
{
long
now
=
System
.
currentTimeMillis
();
long
now
=
System
.
currentTimeMillis
();
if
(
cache
.
size
()
<
minEvictableSize
||
if
(
cache
.
size
()
<
minEvictableSize
||
now
<
nextMinEvictableTime
&&
now
<
nextMinEvictableTime
||
!
expelLock
.
compareAndSet
(
true
,
false
))
{
!
expelLock
.
compareAndSet
(
true
,
false
))
{
return
;
return
;
}
}
long
oldestTime
=
now
;
long
oldestTime
=
now
;
...
...
Write
Preview
Supports
Markdown
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