fixed #161
This commit is contained in:
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user