diff --git a/FastCache/src/main/java/com/fastcache/MCache/RoomImpl.java b/FastCache/src/main/java/com/fastcache/MCache/RoomImpl.java index 4d7f80c..6bc0cc9 100644 --- a/FastCache/src/main/java/com/fastcache/MCache/RoomImpl.java +++ b/FastCache/src/main/java/com/fastcache/MCache/RoomImpl.java @@ -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;