Skip to content

Commit

Permalink
New
Browse files Browse the repository at this point in the history
  • Loading branch information
eslam2010011 committed Dec 7, 2021
1 parent 4392d57 commit 5f8e885
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FastCache/src/main/java/com/fastcache/MCache/RoomImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ public void run() {
long timestamp = entity.timestamp;
long expireTime = entity.expireTime;
T result = null;
if (expireTime<0) { // 缓存的数据从不过期
if (expireTime<0) {

String json = entity.data;
result = converter.fromJson(json,type);
} else {

if (timestamp + expireTime > System.currentTimeMillis()) { // 缓存的数据还没有过期
if (timestamp + expireTime > System.currentTimeMillis()) {

String json = entity.data;

Expand Down

0 comments on commit 5f8e885

Please sign in to comment.