fixed #161
This commit is contained in:
parent
bd9e832f47
commit
5dea49df5b
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user