This commit is contained in:
jinyu 2018-09-11 23:06:33 +08:00
parent bd9e832f47
commit 5dea49df5b

View File

@ -46,7 +46,7 @@ public class FileCacheStorager<T extends Cacheable> implements CacheStorager<T>
if (cacheFile.exists()) { if (cacheFile.exists()) {
T cache = SerializationUtils.deserialize(new FileInputStream( T cache = SerializationUtils.deserialize(new FileInputStream(
cacheFile)); cacheFile));
if (cache.getCreateTime() < 0) { if (cache.getExpires() < 0l) {
return cache; return cache;
} }
if ((cache.getCreateTime() + cache.getExpires() - CUTMS) > System if ((cache.getCreateTime() + cache.getExpires() - CUTMS) > System