mirror of https://github.com/elunez/eladmin
pull/722/head
parent
6941b984be
commit
c9614bd77c
|
@ -47,7 +47,7 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue